Преглед изворни кода

Fix: isFirstTunnelInSession logic

Rod Hynes пре 7 година
родитељ
комит
c2da17ff6f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      psiphon/server/tunnelServer.go

+ 1 - 1
psiphon/server/tunnelServer.go

@@ -1203,7 +1203,7 @@ func (sshClient *sshClient) passwordCallback(conn ssh.ConnMetadata, password []b
 	// is currently much longer than the OSL session cache, another option to use if
 	// is currently much longer than the OSL session cache, another option to use if
 	// the GeoIP session cache is retired (the GeoIP session cache currently only
 	// the GeoIP session cache is retired (the GeoIP session cache currently only
 	// supports legacy use cases).
 	// supports legacy use cases).
-	isFirstTunnelInSession := sshClient.sshServer.support.GeoIPService.InSessionCache(sessionID)
+	isFirstTunnelInSession := !sshClient.sshServer.support.GeoIPService.InSessionCache(sessionID)
 
 
 	supportsServerRequests := common.Contains(
 	supportsServerRequests := common.Contains(
 		sshPasswordPayload.ClientCapabilities, protocol.CLIENT_CAPABILITY_SERVER_REQUESTS)
 		sshPasswordPayload.ClientCapabilities, protocol.CLIENT_CAPABILITY_SERVER_REQUESTS)