mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Starts troubleshooting of port not changing after config change.
This commit is contained in:
parent
c93ce1613d
commit
92725d2249
@ -219,7 +219,8 @@ class Stats:
|
||||
|
||||
# TODO: search server properties file for possible override of 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_data.get('server_port', "25565")
|
||||
print('PORT', server_port)
|
||||
|
||||
logger.debug("Pinging server '{}' on {}:{}".format(s.get('server_name', "ID#{}".format(server_id)), internal_ip, server_port))
|
||||
int_mc_ping = ping(internal_ip, int(server_port))
|
||||
@ -277,7 +278,9 @@ class Stats:
|
||||
|
||||
# TODO: search server properties file for possible override of 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_data.get('server_port', "25565")
|
||||
print(internal_ip)
|
||||
print(server_port)
|
||||
|
||||
logger.debug("Pinging server '{}' on {}:{}".format(server.name, internal_ip, server_port))
|
||||
int_mc_ping = ping(internal_ip, int(server_port))
|
||||
|
@ -622,19 +622,12 @@ class PanelHandler(BaseHandler):
|
||||
Servers.logs_delete_after: logs_delete_after,
|
||||
}).where(Servers.server_id == server_id).execute()
|
||||
|
||||
Server_Stats.update({
|
||||
Server_Stats.server_port: server_port,
|
||||
}).where(Server_Stats.server_id == server_id).execute()
|
||||
|
||||
self.controller.refresh_server_settings(server_id)
|
||||
|
||||
db_helper.add_to_audit_log(exec_user['user_id'],
|
||||
"Edited server {} named {}".format(server_id, server_name),
|
||||
server_id,
|
||||
self.get_remote_ip())
|
||||
|
||||
svr = self.controller.get_server_obj(server_id)
|
||||
svr.reload_server_settings()
|
||||
|
||||
self.redirect("/panel/server_detail?id={}&subpage=config".format(server_id))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user