Final change for port ping issues

This commit is contained in:
Andrew 2021-09-13 20:08:38 -04:00
parent f594c7a638
commit afb95dc828

View File

@ -278,8 +278,8 @@ class Stats:
p_stats = self._get_process_stats(server_obj.PID)
# 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_data.get('server_port', "25565")
internal_ip = server['server_ip']
server_port = server['server_port']
logger.debug("Pinging server '{}' on {}:{}".format(server.name, internal_ip, server_port))
int_mc_ping = ping(internal_ip, int(server_port))