allow importing a wireguard config #27

This commit is contained in:
octeep 2022-03-31 09:47:47 +01:00
parent ec8a7f9a2a
commit 6b05fcc6ca
2 changed files with 33 additions and 5 deletions

View file

@ -49,7 +49,7 @@ go build ./cmd/wireproxy
# Sample config file
```
# The [Interface] and [Peer] configurations follow the same sematics and meaning
# The [Interface] and [Peer] configurations follow the same semantics and meaning
# of a wg-quick configuration. To understand what these fields mean, please refer to:
# https://wiki.archlinux.org/title/WireGuard#Persistent_configuration
# https://www.wireguard.com/#simple-network-interface
@ -92,6 +92,22 @@ BindAddress = 127.0.0.1:25344
#Password = ...
```
Alternatively, if you already have a wireguard config, you can import it in the
wireproxy config file like this:
```
WGConfig = <path to the wireguard config>
# Same semantics as above
[TCPClientTunnel]
...
[TCPServerTunnel]
...
[Socks5]
...
```
## Stargazers over time