diff options
author | Samuel Holland <samuel@sholland.org> | 2017-07-29 17:30:33 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-07-29 17:30:33 -0500 |
commit | ea3f17084441d8ebd76de66231801ff61f1a858e (patch) | |
tree | 028cf53f279c354db64ec1c7f32bc17ae1c9bc09 /app/src/main/res/mipmap-hdpi | |
parent | aa19063f57a3543f3e69a150b51b23af5e10dd39 (diff) |
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.
Diffstat (limited to 'app/src/main/res/mipmap-hdpi')
0 files changed, 0 insertions, 0 deletions