Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix /server/environment endpoint for best ZSS route (v2) #589

Open
wants to merge 2 commits into
base: v2.x/staging
Choose a base branch
from

Conversation

1000TurquoisePogs
Copy link
Member

A regression from v2.10 caused app-server to send an empty object for the "agent" attribute on the /server/environment URL.
This attribute was used by the Desktop to determine the best route to ZSS. When missing, it causes the Desktop to reach ZSS through the app-server, as in the following network chain:

browser -> gateway -> app-server -> gateway -> zss
or when gateway is missing

browser -> app-server -> zss

The correct routing when the gateway is present should be

browser -> gateway -> zss

This PR restores that behavior by fixing the /server/environment URL so that the Desktop has the info necessary to find that more direct route.

Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
@1000TurquoisePogs 1000TurquoisePogs requested a review from a team January 28, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

1 participant