Disable all site serving using a global offline argument
This commit is contained in:
parent
f6e3a74567
commit
998ec3eb4f
9 changed files with 26 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue