Просмотр исходного кода

Fix test: server BPF is not run for fronted protocols

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

+ 1 - 1
psiphon/server/server_test.go

@@ -1505,7 +1505,7 @@ func runServer(t *testing.T, runConfig *runServerConfig) {
 	time.Sleep(100 * time.Millisecond)
 
 	expectClientBPFField := psiphon.ClientBPFEnabled() && doClientTactics
-	expectServerBPFField := ServerBPFEnabled() && doServerTactics
+	expectServerBPFField := ServerBPFEnabled() && protocol.TunnelProtocolIsDirect(runConfig.tunnelProtocol) && doServerTactics
 	expectServerPacketManipulationField := runConfig.doPacketManipulation
 	expectBurstFields := runConfig.doBurstMonitor
 	expectTCPPortForwardDial := runConfig.doTunneledWebRequest