Rod Hynes 8 лет назад
Родитель
Сommit
e8686da0a0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      psiphon/server/tunnelServer.go

+ 1 - 1
psiphon/server/tunnelServer.go

@@ -1425,7 +1425,7 @@ func (sshClient *sshClient) runTunnel(
 				checkAllowedTCPPortFunc,
 				checkAllowedUDPPortFunc,
 				flowActivityUpdaterMaker)
-			if err == nil {
+			if err != nil {
 				log.WithContextFields(LogFields{"error": err}).Warning("start packet tunnel client failed")
 				sshClient.setPacketTunnelChannel(nil)
 			}