From 8bc76372a7016bbeb4bb16dff1a1962de89b2d02 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 7 Feb 2024 13:55:53 +0100 Subject: Types server: Document proxy arguments --- types/server/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/server/server.go b/types/server/server.go index 46bbc26..fda3994 100644 --- a/types/server/server.go +++ b/types/server/server.go @@ -157,9 +157,13 @@ type List struct { Custom []Server `json:"custom_servers,omitempty"` } +// Proxy defines the structure with the arguments that should be passed to start proxyguard 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"` + // Peer is the ip:port of the upstream server Peer string `json:"peer"` } -- cgit v1.2.3