make port forwarding non-default, as it makes more problems than it solves, apparently
This commit is contained in:
parent
8f37715541
commit
d220cc9cc9
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue