Updated my server
This commit is contained in:
parent
ff6e701296
commit
7f5e5ef4b2
@ -6,7 +6,7 @@ import traceback
|
|||||||
|
|
||||||
SERVERS = [{"ip": "136.143.97.184", "port": 19711, "last":datetime.datetime.now()},
|
SERVERS = [{"ip": "136.143.97.184", "port": 19711, "last":datetime.datetime.now()},
|
||||||
{"ip": "73.181.147.35", "port": 19711, "last": datetime.datetime.now()},
|
{"ip": "73.181.147.35", "port": 19711, "last": datetime.datetime.now()},
|
||||||
{"ip": "g.hipstercat.fr", "port": 19711, "last": datetime.datetime.now()}]
|
{"ip": "artolsheim.hipstercat.fr", "port": 19711, "last": datetime.datetime.now()}]
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
listen_ip = "0.0.0.0"
|
listen_ip = "0.0.0.0"
|
||||||
@ -79,7 +79,7 @@ def cleanloop():
|
|||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
for server in SERVERS:
|
for server in SERVERS:
|
||||||
if now > server["last"] + datetime.timedelta(minutes=2):
|
if now > server["last"] + datetime.timedelta(minutes=2):
|
||||||
if server["ip"] == "136.143.97.184" or server["ip"] == "73.181.147.35" or server["ip"] == "g.hipstercat.fr":
|
if server["ip"] == "136.143.97.184" or server["ip"] == "73.181.147.35" or server["ip"] == "artolsheim.hipstercat.fr":
|
||||||
# do not remove usual dedicated servers
|
# do not remove usual dedicated servers
|
||||||
continue
|
continue
|
||||||
print("Deleting %s:%s" % (server["ip"], server["port"]))
|
print("Deleting %s:%s" % (server["ip"], server["port"]))
|
||||||
|
Loading…
Reference in New Issue
Block a user