mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Remote no longer unblocks the port by default
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user