diff options
-rwxr-xr-x | lite.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -20,7 +20,7 @@ serverlist = [] #SERVERLIST = "http://localhost/launcher" VAULT_HOST = "https://api.themanaworld.org:13370" VAULT_CERT = False #"https://tmw2.org/launcher/cert.pem" -SERVERLIST = "https://tmw2.org/launcher" +SERVERLIST = "https://updates.tmw2.org/launcher" # Vault SSL wrapper vault=requests.Session() if VAULT_CERT: @@ -164,9 +164,8 @@ def launch_game(idx): return -1 ## Handle server type - if serverlist[idx]["Type"].lower() == "evol2": - CMD="manaplus" - OPT="-s %s -y evol2 -p %s -S" % (HOST, PORT) + CMD="manaplus" + OPT="-s %s -y %s -p %s -S" % (HOST, serverlist[idx]["Type"], PORT) ## Execute the app app=execute(san("%s %s%s" % (CMD, OPT, PWD)), shell=True) # nosec |