From: Sergey Matveev Date: Wed, 14 Oct 2015 09:43:48 +0000 (+0300) Subject: If proxy is specified, then forcefully use TCP protocol for convenience X-Git-Tag: 4.1^2~3 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=c4c1883f7554bdd37b841f76edd0337ea226ca44 If proxy is specified, then forcefully use TCP protocol for convenience Signed-off-by: Sergey Matveev --- diff --git a/src/govpn/cmd/govpn-client/main.go b/src/govpn/cmd/govpn-client/main.go index 6c611e7..8ebb78d 100644 --- a/src/govpn/cmd/govpn-client/main.go +++ b/src/govpn/cmd/govpn-client/main.go @@ -108,6 +108,9 @@ MainCycle: timeouted := make(chan struct{}) rehandshaking := make(chan struct{}) termination := make(chan struct{}) + if *proxyAddr != "" { + *proto = "tcp" + } switch *proto { case "udp": go startUDP(timeouted, rehandshaking, termination)