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 start serverIdx in pingList when some servers are down #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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"
  }
]

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.

1 participant