Print host instead of ip address if host is specified. Also embed specified host into bmbp files. (#57)
This commit is contained in:
parent
412e30fabc
commit
959917bb13
|
@ -51,6 +51,7 @@ if __name__ == "__main__":
|
||||||
meta_file_path = multi_mystery_options["meta_file_path"]
|
meta_file_path = multi_mystery_options["meta_file_path"]
|
||||||
teams = multi_mystery_options["teams"]
|
teams = multi_mystery_options["teams"]
|
||||||
rom_file = options["general_options"]["rom_file"]
|
rom_file = options["general_options"]["rom_file"]
|
||||||
|
host = options["server_options"]["host"]
|
||||||
port = options["server_options"]["port"]
|
port = options["server_options"]["port"]
|
||||||
|
|
||||||
|
|
||||||
|
@ -143,7 +144,7 @@ if __name__ == "__main__":
|
||||||
zipname = os.path.join(output_path, f"ER_{seedname}.{typical_zip_ending}")
|
zipname = os.path.join(output_path, f"ER_{seedname}.{typical_zip_ending}")
|
||||||
|
|
||||||
print(f"Creating zipfile {zipname}")
|
print(f"Creating zipfile {zipname}")
|
||||||
ipv4 = get_public_ipv4() + ":" + str(port)
|
ipv4 = (host if host else get_public_ipv4()) + ":" + str(port)
|
||||||
with zipfile.ZipFile(zipname, "w", compression=compression, compresslevel=9) as zf:
|
with zipfile.ZipFile(zipname, "w", compression=compression, compresslevel=9) as zf:
|
||||||
for file in os.listdir(output_path):
|
for file in os.listdir(output_path):
|
||||||
if file.endswith(".sfc") and seedname in file:
|
if file.endswith(".sfc") and seedname in file:
|
||||||
|
|
|
@ -670,7 +670,7 @@ async def main(args: argparse.Namespace):
|
||||||
logging.error('Failed to read multiworld data (%s)' % e)
|
logging.error('Failed to read multiworld data (%s)' % e)
|
||||||
return
|
return
|
||||||
|
|
||||||
ip = Utils.get_public_ipv4()
|
ip = args.host if args.host else Utils.get_public_ipv4()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue