Optimized loading speed for peer information

This commit is contained in:
Donald Zou
2025-08-06 17:27:14 +08:00
parent 1c857c0781
commit d96b178a9c
6 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ class AmneziaWireguardConfiguration(WireguardConfiguration):
os.remove(uid)
subprocess.check_output(
f"{self.Protocol}-quick save {self.Name}", shell=True, stderr=subprocess.STDOUT)
self.getPeersList()
self.getPeers()
for p in peers:
p = self.searchPeer(p['id'])
if p[0]: