Skip to content

Conversation

@notzhan
Copy link

@notzhan notzhan commented Dec 18, 2024

Fix bug: as below json example, when first server in config file is down/not exist/error, the selected idx will be 0, the correct index should be 1.

json example:

[
  {
    "id": 2,
    "name": "noexist",
    "server": "http://not.exist:8989",
     "dlURL": "garbage.php",
    "ulURL": "empty.php",
    "pingURL": "empty.php",
    "getIpURL": "getIP.php"
  },
  {
    "id": 3,
    "name": "good",
    "server": "http://good.server:8989",
     "dlURL": "garbage.php",
    "ulURL": "empty.php",
    "pingURL": "empty.php",
    "getIpURL": "getIP.php"
  }
]

@maddie
Copy link
Collaborator

maddie commented Jun 12, 2025

Wouldn't the following for loop do the same thing?

muzikr added a commit to muzikr/packages that referenced this pull request Nov 10, 2025
If the server is down it can still be selected to test on it. This fixes
the bug.

See:
- librespeed/speedtest-cli#94
muzikr added a commit to muzikr/packages that referenced this pull request Nov 11, 2025
If the server is down it can still be selected to test on it. This fixes
the bug.

See:
- librespeed/speedtest-cli#94

Signed-off-by: Richard Muzik <[email protected]>
muzikr added a commit to muzikr/packages that referenced this pull request Nov 11, 2025
If the server is down it can still be selected to test on it. This fixes
the bug.

See:
- librespeed/speedtest-cli#94

Signed-off-by: Richard Muzik <[email protected]>
muzikr added a commit to muzikr/packages that referenced this pull request Nov 11, 2025
If the server is down it can still be selected to test on it. This fixes
the bug.

See:
- librespeed/speedtest-cli#94

Signed-off-by: Richard Muzik <[email protected]>
muzikr added a commit to muzikr/packages that referenced this pull request Nov 11, 2025
If the server is down it can still be selected to test on it. This fixes
the bug.

See:
- librespeed/speedtest-cli#94

Signed-off-by: Richard Muzik <[email protected]>
BKPepe pushed a commit to openwrt/packages that referenced this pull request Nov 11, 2025
If the server is down it can still be selected to test on it. This fixes
the bug.

See:
- librespeed/speedtest-cli#94

Signed-off-by: Richard Muzik <[email protected]>
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.

2 participants