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

Fix unexpected meek_server_http_version

- Always use a TLS profile that offers h2, ensuring that HTTP/2.0 is
  negotiated, as expected in this test case
Rod Hynes пре 1 година
родитељ
комит
beb281b43f
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      psiphon/server/server_test.go

+ 3 - 1
psiphon/server/server_test.go

@@ -619,7 +619,9 @@ func TestOmitProvider(t *testing.T) {
 func TestSteeringIP(t *testing.T) {
 	runServer(t,
 		&runServerConfig{
-			tunnelProtocol:       "FRONTED-MEEK-OSSH",
+			tunnelProtocol: "FRONTED-MEEK-OSSH",
+			// use a TLS profile that offers h2 in the ALPN
+			tlsProfile:           protocol.TLS_PROFILE_CHROME_102,
 			requireAuthorization: true,
 			doTunneledWebRequest: true,
 			doTunneledNTPRequest: true,