浏览代码

Fix test: server BPF is not run for fronted protocols

Rod Hynes 2 年之前
父节点
当前提交
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)
 	time.Sleep(100 * time.Millisecond)
 
 
 	expectClientBPFField := psiphon.ClientBPFEnabled() && doClientTactics
 	expectClientBPFField := psiphon.ClientBPFEnabled() && doClientTactics
-	expectServerBPFField := ServerBPFEnabled() && doServerTactics
+	expectServerBPFField := ServerBPFEnabled() && protocol.TunnelProtocolIsDirect(runConfig.tunnelProtocol) && doServerTactics
 	expectServerPacketManipulationField := runConfig.doPacketManipulation
 	expectServerPacketManipulationField := runConfig.doPacketManipulation
 	expectBurstFields := runConfig.doBurstMonitor
 	expectBurstFields := runConfig.doBurstMonitor
 	expectTCPPortForwardDial := runConfig.doTunneledWebRequest
 	expectTCPPortForwardDial := runConfig.doTunneledWebRequest