From e85070a3fb601e1872d121ce3c1c9d39f8f41036 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 23 Oct 2024 11:31:39 +0200 Subject: All: Refactor to latest ProxyGuard --- types/server/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'types/server/server.go') 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"` -- cgit v1.2.3