]> Cypherpunks.ru repositories - govpn.git/commitdiff
No need of notice that noise-mode is enabled when encryptionless is on
authorSergey Matveev <stargrave@stargrave.org>
Thu, 8 Dec 2016 20:33:12 +0000 (23:33 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 8 Dec 2016 20:33:12 +0000 (23:33 +0300)
Encryptionless mode always noises the packets (by "definition").
No need to force user setting up -noise option to skip the notice that
encryptionless mode includes noise. Those, who turns this option on --
already should know what they are doing.

src/cypherpunks.ru/govpn/cmd/govpn-client/main.go

index 225dbc82cc574365d00865396146dc954f88a8f9..3e372d89029be19f49cab3a4ce81b90f0f713b92 100644 (file)
@@ -103,10 +103,7 @@ func main() {
                if protocol != client.ProtocolTCP {
                        log.Fatalln("Currently encryptionless mode works only with TCP")
                }
-               if !*noisy {
-                       log.Println("-encless is on, force -noisy mode")
-                       *noisy = true
-               }
+               *noisy = true
        }
        conf := client.Configuration{
                PrivateKey: priv,