From: Sergey Matveev Date: Thu, 8 Dec 2016 19:58:10 +0000 (+0300) Subject: We must fail if invalid transport configuration is set X-Git-Tag: 7.1^2~26 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=55dc4e10f75c45a1ab446700f474da81e834b060 We must fail if invalid transport configuration is set We must not do anything unexpected by user. It he specified UDP mode and HTTP proxy -- it is his fault, but that does not mean that we could assume switching to TCP mode instead. No unexpectedly generated traffic must come out. --- diff --git a/src/cypherpunks.ru/govpn/cmd/govpn-client/main.go b/src/cypherpunks.ru/govpn/cmd/govpn-client/main.go index d16245a..225dbc8 100644 --- a/src/cypherpunks.ru/govpn/cmd/govpn-client/main.go +++ b/src/cypherpunks.ru/govpn/cmd/govpn-client/main.go @@ -84,8 +84,7 @@ func main() { } if *proxyAddr != "" && protocol == client.ProtocolUDP { - log.Println("Proxy is supported for TCP only, switch") - protocol = client.ProtocolTCP + log.Fatalln("HTTP proxy is supported only in TCP mode") } if *verifierRaw == "" {