diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-07 13:43:52 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | c8e7424f0b9ca963c7454e3297a8d001d67d729d (patch) | |
| tree | 979341ca6b67badc451aa58d3790704b3bf04386 /types/server | |
| parent | a912257ad6d4260fbea9c0e3e3fb9bbefa92bb6e (diff) | |
WireGuard: TCP support using proxyguard
Diffstat (limited to 'types/server')
| -rw-r--r-- | types/server/server.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/types/server/server.go b/types/server/server.go index 5371197..5a340b1 100644 --- a/types/server/server.go +++ b/types/server/server.go @@ -157,6 +157,12 @@ type List struct { Custom []Server `json:"custom_servers,omitempty"` } +type Proxy struct { + SourcePort int `json:"source_port"` + Listen string `json:"listen"` + Peer string `json:"peer"` +} + // Configuration is the configuration that you get back when you call the get config function type Configuration struct { // VPNConfig is the VPN Configuration, a WireGuard or OpenVPN Configuration @@ -169,6 +175,9 @@ type Configuration struct { DefaultGateway bool `json:"default_gateway"` // DNSSearchDomains are the list of dns search domains DNSSearchDomains []string `json:"dns_search_domains,omitempty"` + // Proxy returns information for proxied VPN connections + // If this is non-nil a proxy must be started using StartProxyguard + Proxy *Proxy `json:"proxy,omitempty"` } // Current is the struct that defines the current server |
