]> Cypherpunks.ru repositories - govpn.git/commitdiff
If proxy is specified, then forcefully use TCP protocol for convenience
authorSergey Matveev <stargrave@stargrave.org>
Wed, 14 Oct 2015 09:43:48 +0000 (12:43 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 14 Oct 2015 09:43:52 +0000 (12:43 +0300)
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
src/govpn/cmd/govpn-client/main.go

index 6c611e746a1c43a8aed5a8657e88cccb34371b08..8ebb78dcc95da7c9276e387df69b3be6f5b6c544 100644 (file)
@@ -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)