Go to file
Samuel Holland 748d780a47 Profile: Parse config file to a string per attribute
This parser should be able to handle any valid WireGuard or wg-quick
configuration file. It separates the file into a single interface object
and a peer object for each peer. All "[Interface]" sections in the file
are combined into the one object.

For now, later lines in a block with the same key overwrite earlier
lines. This is only relevant for attributes that are lists, such as
Address and AllowedIPs, where additional lines may be expected to append
to the list.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29 17:30:33 -05:00
app Profile: Parse config file to a string per attribute 2017-07-29 17:30:33 -05:00
cli cli: only call DNS if there is DNS 2017-07-31 22:26:00 +02:00
gradle/wrapper project: Add gradle wrapper 2017-07-28 23:11:24 -05:00
.gitignore project: Create empty project with WireGuard icon 2017-07-28 23:10:37 -05:00
build.gradle project: Create empty project with WireGuard icon 2017-07-28 23:10:37 -05:00
COPYING project: Skeleton with license and readme 2017-07-31 03:00:41 +02:00
gradle.properties project: Create empty project with WireGuard icon 2017-07-28 23:10:37 -05:00
gradlew project: Add gradle wrapper 2017-07-28 23:11:24 -05:00
README.md project: Skeleton with license and readme 2017-07-31 03:00:41 +02:00
settings.gradle project: Create empty project with WireGuard icon 2017-07-28 23:10:37 -05:00

Do not use this code.

This is not a complete implementation of WireGuard. If you're interested in using WireGuard, use the implementation for Linux found here and described on the main wireguard website. There is no group of users that should be using the code in this repository here under any circumstances at the moment, not even beta testers or dare devils. It simply isn't complete. However, if you're interested in assisting with the Android development of WireGuard and contributing to this repository, by all means dig in and help out. But users: stay far away, at least for now.


Android Implementation of WireGuard

This is a work in progress for implementing WireGuard for Android.

License

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.