From 55dc4e10f75c45a1ab446700f474da81e834b060 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 8 Dec 2016 22:58:10 +0300 Subject: [PATCH] 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. --- src/cypherpunks.ru/govpn/cmd/govpn-client/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 == "" { -- 2.44.0