diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-07 13:55:53 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 8bc76372a7016bbeb4bb16dff1a1962de89b2d02 (patch) | |
| tree | ce04822c56003948cdf294d25d46bc30d343eb07 /types/server | |
| parent | 9cbe11f260ea9bede2ddc25c689e2761ae14039f (diff) | |
Types server: Document proxy arguments
Diffstat (limited to 'types/server')
| -rw-r--r-- | types/server/server.go | 4 |
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"` } |
