]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/cmd/govpn-client/main.go
We must fail if invalid transport configuration is set
[govpn.git] / src / cypherpunks.ru / govpn / cmd / govpn-client / main.go
index d16245ac2de3b153abe22be7a8fa46be8c30cfe6..225dbc82cc574365d00865396146dc954f88a8f9 100644 (file)
@@ -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 == "" {