Remote no longer unblocks the port by default

This commit is contained in:
Henk
2023-03-02 17:43:23 +01:00
committed by somebody
parent 70cddc46e2
commit 55349d84e1

View File

@@ -1360,6 +1360,7 @@ def general_startup(override_args=None):
if args.host:
koboldai_vars.host = True;
args.unblock = True;
if args.cpu:
koboldai_vars.use_colab_tpu = False
@@ -10899,7 +10900,10 @@ def run():
logger.init_ok("Webserver", status="OK")
logger.message(f"Webserver has started, you can now connect to this machine at port: {port}")
koboldai_vars.serverstarted = True
socketio.run(app, host='0.0.0.0', port=port)
if args.unblock:
socketio.run(app, port=port, host='0.0.0.0')
else:
socketio.run(app, port=port)
else:
startup()
if args.unblock: