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?

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