Disable all site serving using a global offline argument

This commit is contained in:
shortcutme 2019-04-15 15:06:25 +02:00
parent f6e3a74567
commit 998ec3eb4f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
9 changed files with 26 additions and 19 deletions

View file

@ -91,7 +91,7 @@ class UiWebsocketPlugin(object):
peers_total = len(site.peers)
# Add myself
if site.settings["serving"]:
if site.isServing():
peers_total += 1
if any(site.connection_server.port_opened.values()):
connectable += 1