Explorar o código

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 hai 1 ano
pai
achega
beb281b43f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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,