mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Port/ip-get patched
Patched super user in panel_handler
This commit is contained in:
parent
03d7cfae80
commit
287d45a1bc
@ -168,8 +168,6 @@ class Stats:
|
||||
internal_ip = server_data.get('server-ip', "127.0.0.1")
|
||||
server_port = server_settings.get('server-port', "25565")
|
||||
|
||||
print("PORT!!!!!: " + str(server_port))
|
||||
|
||||
logger.debug("Pinging {} on port {}".format(internal_ip, 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")
|
||||
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))
|
||||
int_mc_ping = ping(internal_ip, int(server_port))
|
||||
|
||||
|
@ -48,8 +48,6 @@ class Server:
|
||||
|
||||
def reload_server_settings(self):
|
||||
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
|
||||
|
||||
def do_server_setup(self, server_data_obj):
|
||||
|
Loading…
Reference in New Issue
Block a user