From d220cc9cc99ef44fe4c5ba0038df2a1f67b074b0 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 11 Mar 2020 09:16:07 +0100 Subject: [PATCH] make port forwarding non-default, as it makes more problems than it solves, apparently --- MultiServer.py | 4 ++-- host.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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