Просмотр исходного кода

Document host_id persistent stat limitation

Rod Hynes 7 лет назад
Родитель
Сommit
dd3db2d275
2 измененных файлов с 9 добавлено и 5 удалено
  1. 7 4
      psiphon/server/api.go
  2. 2 1
      psiphon/serverApi.go

+ 7 - 4
psiphon/server/api.go

@@ -473,8 +473,11 @@ func statusAPIRequestHandler(
 		}
 	}
 
-	// Remote server list download stats. Older clients may not submit this data.
-	// Limitation: for "persistent" stats, geolocation is time-of-sending not time-of-recording.
+	// Limitation: for "persistent" stats, host_id and geolocation is time-of-sending
+	// not time-of-recording.
+
+	// Remote server list download persistent stats.
+	// Older clients may not submit this data.
 
 	if statusData["remote_server_list_stats"] != nil {
 
@@ -505,8 +508,8 @@ func statusAPIRequestHandler(
 		}
 	}
 
-	// Failed tunnel stats. Older clients may not submit this data.
-	// Limitation: for "persistent" stats, geolocation is time-of-sending not time-of-recording.
+	// Failed tunnel persistent stats.
+	// Older clients may not submit this data.
 
 	if statusData["failed_tunnel_stats"] != nil {
 

+ 2 - 1
psiphon/serverApi.go

@@ -539,7 +539,8 @@ func confirmStatusRequestPayload(payloadInfo *statusRequestPayloadInfo) {
 // via subsequent status requests sent to any Psiphon server.
 //
 // Note that some common event field values may change between the
-// stat recording and reporting, including client geolocation.
+// stat recording and reporting, including client geolocation and
+// host_id.
 //
 // Multiple "status" requests may be in flight at once (due
 // to multi-tunnel, asynchronous final status retry, and