Port/ip-get patched

Patched super user in panel_handler
This commit is contained in:
Andrew 2021-03-13 09:29:05 -05:00
parent 03d7cfae80
commit 287d45a1bc
2 changed files with 0 additions and 9 deletions

View File

@ -168,8 +168,6 @@ class Stats:
internal_ip = server_data.get('server-ip', "127.0.0.1") internal_ip = server_data.get('server-ip', "127.0.0.1")
server_port = server_settings.get('server-port', "25565") server_port = server_settings.get('server-port', "25565")
print("PORT!!!!!: " + str(server_port))
logger.debug("Pinging {} on port {}".format(internal_ip, server_port)) logger.debug("Pinging {} on port {}".format(internal_ip, server_port))
int_mc_ping = ping(internal_ip, int(server_port)) int_mc_ping = ping(internal_ip, int(server_port))
@ -213,11 +211,6 @@ class Stats:
internal_ip = server_data.get('server-ip', "127.0.0.1") internal_ip = server_data.get('server-ip', "127.0.0.1")
server_port = server_settings.get('server-port', "25565") server_port = server_settings.get('server-port', "25565")
for item in server_data:
if item is not list:
print(str(item))
print("Server IP: " + internal_ip)
logger.debug("Pinging {} on port {}".format(internal_ip, server_port)) logger.debug("Pinging {} on port {}".format(internal_ip, server_port))
int_mc_ping = ping(internal_ip, int(server_port)) int_mc_ping = ping(internal_ip, int(server_port))

View File

@ -48,8 +48,6 @@ class Server:
def reload_server_settings(self): def reload_server_settings(self):
server_data = db_helper.get_server_data_by_id(self.server_id) server_data = db_helper.get_server_data_by_id(self.server_id)
for item in server_data:
print("ITEM: " + str(item))
self.settings = server_data self.settings = server_data
def do_server_setup(self, server_data_obj): def do_server_setup(self, server_data_obj):