Skip to content

Commit

Permalink
Change mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
gi-b716 committed Nov 15, 2024
1 parent 2677b1e commit 24dfa6d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions _update.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import requests
import zipfile
import sys
import os

mirror = "https://autohack.netlify.app/"
# mirror = "https://gi-b716.github.io/autoHack/"
try:
import requests
except ImportError:
os.system("pip install requests")
import requests

mirrorList = [["https://autohack.netlify.app/", "autohack.netlify.app"], ["https://gi-b716.github.io/autoHack/", "gi-b716.github.io"]]

for i in range(len(mirrorList)):
print("{0}. {1}".format(i, mirrorList[i][0]))
os.system("ping {0} -n 2 -w 500".format(mirrorList[i][1]))
print()

mirror = mirrorList[int(input("Set mirror: "))][0]

os.system("cls")

lasted = str(requests.get("{0}/LASTED".format(mirror)).content, "utf-8")

Expand Down
2 changes: 1 addition & 1 deletion dataGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def mainPage(self):
self.mainPage()

class Meta:
_version = "5.1.0"
_version = "5.1.2"


if __name__ == "__main__":
Expand Down

0 comments on commit 24dfa6d

Please sign in to comment.