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
Samuel Holland
0494dd1404
Profile: Add minimal implementation
...
This represents a wg-quick profile as two strings: the file name and
the file contents.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29 06:08:54 -05:00
Samuel Holland
f8b7030e22
project: Add gradle wrapper
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-28 23:11:24 -05:00
Samuel Holland
5a82ecf18a
icon: Use the uncropped logo for the non-round icon
...
The round icon remains the same.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-30 22:47:24 -05:00
Samuel Holland
56cf8816d3
project: Create empty project with WireGuard icon
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-28 23:10:37 -05:00
Jason A. Donenfeld
b8cb52ed4b
project: Skeleton with license and readme
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-31 03:00:41 +02:00
Jason A. Donenfeld
506d871013
cli: only call DNS if there is DNS
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-31 22:26:00 +02:00
Jason A. Donenfeld
b2f4a755a0
cli: add multi-DNS to wg-quick
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-31 05:15:05 +02:00
Jason A. Donenfeld
df4fc98493
cli: import from contrib/examples/android
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-31 03:02:26 +02:00
Samuel Holland
e85142dbfc
git: Initialize repository
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-28 22:59:47 -05:00