Skip to content

Commit

Permalink
Copy temporary workaround from bddc482
Browse files Browse the repository at this point in the history
- Add temporary [client_]session_id workaround for compatibility with the
  current network.
  • Loading branch information
rod-hynes committed Aug 20, 2024
1 parent 9a5e4eb commit 5c1c860
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions psiphon/serverApi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5c1c860

Please sign in to comment.