From c8e7424f0b9ca963c7454e3297a8d001d67d729d Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 7 Feb 2024 13:43:52 +0100 Subject: WireGuard: TCP support using proxyguard --- types/server/server.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'types/server') 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 -- cgit v1.2.3