Browse Source

Indicate when additional network info was present and stripped

Rod Hynes 8 years ago
parent
commit
404eedb0c1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      MobileLibrary/psi/psi.go

+ 4 - 0
MobileLibrary/psi/psi.go

@@ -345,6 +345,10 @@ func (d *loggingNetworkIDGetter) GetNetworkID() string {
 	if index != -1 {
 		logNetworkID = logNetworkID[:index]
 	}
+	if len(logNetworkID)+1 < len(networkID) {
+		// Indicate when additional network info was present after the first "-".
+		logNetworkID += "+<network info>"
+	}
 	psiphon.NoticeInfo("GetNetworkID: %s", logNetworkID)
 
 	return networkID