فهرست منبع

Fix: automated test bind port conflict

Rod Hynes 9 سال پیش
والد
کامیت
f316799be4
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      psiphon/userAgent_test.go

+ 2 - 2
psiphon/userAgent_test.go

@@ -124,7 +124,7 @@ func initUserAgentCounterUpstreamProxy() {
 					return goproxy.RejectConnect, host
 					return goproxy.RejectConnect, host
 				})
 				})
 
 
-			err := http.ListenAndServe("127.0.0.1:2162", proxy)
+			err := http.ListenAndServe("127.0.0.1:2163", proxy)
 			if err != nil {
 			if err != nil {
 				fmt.Printf("upstream proxy failed: %s\n", err)
 				fmt.Printf("upstream proxy failed: %s\n", err)
 			}
 			}
@@ -184,7 +184,7 @@ func attemptConnectionsWithUserAgent(
         "EstablishTunnelPausePeriodSeconds" : 1,
         "EstablishTunnelPausePeriodSeconds" : 1,
         "DisableRemoteServerListFetcher" : true,
         "DisableRemoteServerListFetcher" : true,
         "TransformHostNames" : "never",
         "TransformHostNames" : "never",
-        "UpstreamProxyUrl" : "http://127.0.0.1:2162"
+        "UpstreamProxyUrl" : "http://127.0.0.1:2163"
     }`
     }`
 	clientConfig, _ := LoadConfig([]byte(clientConfigJSON))
 	clientConfig, _ := LoadConfig([]byte(clientConfigJSON))