Rod Hynes 8 лет назад
Родитель
Сommit
e02d36fbf2
2 измененных файлов с 6 добавлено и 6 удалено
  1. 4 4
      psiphon/common/tactics/tactics.go
  2. 2 2
      psiphon/tunnel.go

+ 4 - 4
psiphon/common/tactics/tactics.go

@@ -253,7 +253,7 @@ type Filter struct {
 	// Regions specifies a list of GeoIP regions/countries the client
 	// Regions specifies a list of GeoIP regions/countries the client
 	// must match.
 	// must match.
 	Regions []string
 	Regions []string
-	// Regions specifies a list of GeoIP ISPs the client must match.
+	// ISPs specifies a list of GeoIP ISPs the client must match.
 	ISPs []string
 	ISPs []string
 
 
 	// APIParameters specifies API, e.g. handshake, parameter names and
 	// APIParameters specifies API, e.g. handshake, parameter names and
@@ -365,7 +365,7 @@ type SpeedTestSample struct {
 	// an application-level round trip on top of a previously established
 	// an application-level round trip on top of a previously established
 	// tactics or tunnel prococol connection. The RTT should not include
 	// tactics or tunnel prococol connection. The RTT should not include
 	// TCP, TLS, or SSH handshakes.
 	// TCP, TLS, or SSH handshakes.
-	// This value is truncated to the nearest milliscond as a privacy
+	// This value is truncated to the nearest millisecond as a privacy
 	// measure.
 	// measure.
 	RTTMilliseconds int `json:"rtt"`
 	RTTMilliseconds int `json:"rtt"`
 
 
@@ -1168,7 +1168,7 @@ func FetchTactics(
 
 
 		response, err := roundTripper(ctx, SPEED_TEST_END_POINT, request)
 		response, err := roundTripper(ctx, SPEED_TEST_END_POINT, request)
 
 
-		elaspedTime := monotime.Since(startTime)
+		elapsedTime := monotime.Since(startTime)
 
 
 		if err != nil {
 		if err != nil {
 			return nil, common.ContextError(err)
 			return nil, common.ContextError(err)
@@ -1180,7 +1180,7 @@ func FetchTactics(
 			networkID,
 			networkID,
 			endPointRegion,
 			endPointRegion,
 			endPointProtocol,
 			endPointProtocol,
-			elaspedTime,
+			elapsedTime,
 			request,
 			request,
 			response)
 			response)
 		if err != nil {
 		if err != nil {

+ 2 - 2
psiphon/tunnel.go

@@ -1443,7 +1443,7 @@ func (tunnel *Tunnel) sendSshKeepAlive(isFirstKeepAlive bool, timeout time.Durat
 		requestOk, response, err := tunnel.sshClient.SendRequest(
 		requestOk, response, err := tunnel.sshClient.SendRequest(
 			"keepalive@openssh.com", true, request)
 			"keepalive@openssh.com", true, request)
 
 
-		elaspedTime := monotime.Since(startTime)
+		elapsedTime := monotime.Since(startTime)
 
 
 		errChannel <- err
 		errChannel <- err
 
 
@@ -1465,7 +1465,7 @@ func (tunnel *Tunnel) sendSshKeepAlive(isFirstKeepAlive bool, timeout time.Durat
 				tunnel.config.NetworkIDGetter.GetNetworkID(),
 				tunnel.config.NetworkIDGetter.GetNetworkID(),
 				tunnel.serverEntry.Region,
 				tunnel.serverEntry.Region,
 				tunnel.protocol,
 				tunnel.protocol,
-				elaspedTime,
+				elapsedTime,
 				request,
 				request,
 				response)
 				response)
 			if err != nil {
 			if err != nil {