mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 01:06:58 +00:00
parent
ef8849e8a9
commit
7834fff541
@ -3115,16 +3115,19 @@ def peerInformationBackgroundThread():
|
|||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
while True:
|
while True:
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
for c in WireguardConfigurations.values():
|
try:
|
||||||
if c.getStatus():
|
curKeys = list(WireguardConfigurations.keys())
|
||||||
try:
|
for name in curKeys:
|
||||||
c.getPeersTransfer()
|
if name in WireguardConfigurations.keys() and WireguardConfigurations.get(name) is not None:
|
||||||
c.getPeersLatestHandshake()
|
c = WireguardConfigurations.get(name)
|
||||||
c.getPeersEndpoint()
|
if c.getStatus():
|
||||||
c.getPeersList()
|
c.getPeersTransfer()
|
||||||
c.getRestrictedPeersList()
|
c.getPeersLatestHandshake()
|
||||||
except Exception as e:
|
c.getPeersEndpoint()
|
||||||
print(f"[WGDashboard] Background Thread #1 Error: {str(e)}", flush=True)
|
c.getPeersList()
|
||||||
|
c.getRestrictedPeersList()
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[WGDashboard] Background Thread #1 Error: {str(e)}", flush=True)
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
|
||||||
def peerJobScheduleBackgroundThread():
|
def peerJobScheduleBackgroundThread():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user