summaryrefslogtreecommitdiff
path: root/types/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'types/server/server.go')
-rw-r--r--types/server/server.go4
1 files changed, 4 insertions, 0 deletions
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"`
}