Przeglądaj źródła

Fix: if nil default value is used

mirokuratczyk 7 lat temu
rodzic
commit
e692a20b00
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      ClientLibrary/PsiphonTunnel.go

+ 1 - 1
ClientLibrary/PsiphonTunnel.go

@@ -156,7 +156,7 @@ func psiphon_tunnel_start(cConfigJSON, cEmbeddedServerEntryList, cClientPlatform
 
 
 	if timeout != nil {
 	if timeout != nil {
 		// timeout overrides optional timeout field in config
 		// timeout overrides optional timeout field in config
-		config.EstablishTunnelTimeoutSeconds = nil
+		config.EstablishTunnelTimeoutSeconds = 0
 	}
 	}
 
 
 	// All config fields should be set before calling commit
 	// All config fields should be set before calling commit