diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-10-23 11:31:39 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-10-29 12:08:36 +0100 |
| commit | e85070a3fb601e1872d121ce3c1c9d39f8f41036 (patch) | |
| tree | 96d57bf647f2cdc3408ad5c3163ca91ed571cb63 /types/server/server.go | |
| parent | 0076386bca8b1e49673f50323cd147ac080cfc2f (diff) | |
All: Refactor to latest ProxyGuard
Diffstat (limited to 'types/server/server.go')
| -rw-r--r-- | types/server/server.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/types/server/server.go b/types/server/server.go index 1d55ea7..b880543 100644 --- a/types/server/server.go +++ b/types/server/server.go @@ -164,8 +164,9 @@ type List struct { type Proxy struct { // SourcePort is the source port for the client TCP connection SourcePort int `json:"source_port"` - // Listen is the ip:port for the client UDP connection, this is the value that is replaced in the config - Listen string `json:"listen"` + // ListenPort is the port for the client UDP connection, this is the value that is set as the WireGuard endpoint prepended with "127.0.0.1:" + // So if the listen port is set to 1337, the WireGuard endpoint would be 127.0.0.1:1337 + ListenPort int `json:"listen_port"` // Peer is the URI of the upstream server // Note that this exactly matches the "ProxyEndpoint" key in the WireGuard config Peer string `json:"peer"` |
