Rod Hynes 4 лет назад
Родитель
Сommit
8e08c67156
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      psiphon/common/protocol/serverEntry.go

+ 2 - 1
psiphon/common/protocol/serverEntry.go

@@ -505,7 +505,8 @@ func (serverEntry *ServerEntry) ProtocolUsesLegacyPassthrough(protocol string) b
 // while sending atypical traffic to the server.
 func (serverEntry *ServerEntry) SupportsOnlyQUICv1() bool {
 	quicCapability := GetCapability(TUNNEL_PROTOCOL_QUIC_OBFUSCATED_SSH)
-	return serverEntry.hasCapability(quicCapability+"v1") && !serverEntry.hasCapability(quicCapability)
+	return common.Contains(serverEntry.Capabilities, quicCapability+"v1") &&
+		!common.Contains(serverEntry.Capabilities, quicCapability)
 }
 
 // ConditionallyEnabledComponents defines an interface which can be queried to