Browse Source

Copy temporary workaround from bddc482a

- Add temporary [client_]session_id workaround for compatibility with the
  current network.
Rod Hynes 1 year ago
parent
commit
5c1c860575
1 changed files with 8 additions and 0 deletions
  1. 8 0
      psiphon/serverApi.go

+ 8 - 0
psiphon/serverApi.go

@@ -1025,6 +1025,14 @@ func getBaseAPIParameters(
 
 	params := make(common.APIParameters)
 
+	// Temporary measure: unconditionally include legacy session_id and
+	// client_session_id fields for compatibility with existing servers used
+	// in CI.
+	//
+	// TODO: remove once necessary servers are upgraded
+	params["session_id"] = config.SessionID
+	params["client_session_id"] = config.SessionID
+
 	if includeSessionID {
 		// The session ID is included in non-SSH API requests only. For SSH
 		// API requests, the Psiphon server already has the client's session ID.