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-dual-mode #679

Open
wants to merge 4 commits into
base: fix-docker-images
Choose a base branch
from
Open

Fix-dual-mode #679

wants to merge 4 commits into from

Conversation

sstidl
Copy link
Collaborator

@sstidl sstidl commented Oct 26, 2024

No description provided.

@sstidl sstidl linked an issue Oct 26, 2024 that may be closed by this pull request
]
);
?>
var SPEEDTEST_SERVERS= <?= json_encode($servers, JSON_PRETTY_PRINT) ?: '[]' ?>;
<?php } else { ?>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why the new elseif block is important. If servers.json has all the possible servers including itself then I would assume we just need to remove $mode=="dual" and let it fall into the else below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new block ensures that the current server is in the list of servers.
You can achieve the same manually by adding it to the json, but that's prone to errors.
In my interpretation "dual" mode means that it has the features from server.json plus the standalone local server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dual mode is broken
3 participants