diff --git a/MultiServer.py b/MultiServer.py index 66e2ecb5..fc1037ad 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -614,7 +614,7 @@ async def main(): parser.add_argument('--location_check_points', default=1, type=int) parser.add_argument('--hint_cost', default=1000, type=int) parser.add_argument('--disable_item_cheat', default=False, action='store_true') - parser.add_argument('--disable_port_forward', default=False, action='store_true') + parser.add_argument('--port_forward', default=False, action='store_true') args = parser.parse_args() if os.path.exists('host.yaml'): @@ -624,7 +624,7 @@ async def main(): setattr(args, key, value) logging.basicConfig(format='[%(asctime)s] %(message)s', level=getattr(logging, args.loglevel.upper(), logging.INFO)) portforwardtask = None - if not args.disable_port_forward: + if args.port_forward: portforwardtask = asyncio.create_task(forward_port(args.port)) ctx = Context(args.host, args.port, args.password, args.location_check_points, args.hint_cost, diff --git a/host.yaml b/host.yaml index 6af92b86..c70cdcc3 100644 --- a/host.yaml +++ b/host.yaml @@ -13,7 +13,7 @@ server_options: disable_save: null loglevel: null #disallow automatically forwarding the port that is used, then closing that port on shutdown - disable_port_forward: null + port_forward: null #Disallow !getitem. Old /getitem cannot be blocked this way disable_item_cheat: null #Client hint system