mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-01 06:16:16 +00:00
update wg-firewall.sh to replace 'wireguard-webadmin-dns' with 'cluster-node-dns'
This commit is contained in:
@@ -105,6 +105,8 @@ class ClusterWorker:
|
|||||||
|
|
||||||
# 2. Write new files
|
# 2. Write new files
|
||||||
for filename, content in files.items():
|
for filename, content in files.items():
|
||||||
|
if filename == 'wg-firewall.sh' and isinstance(content, str):
|
||||||
|
content = content.replace('wireguard-webadmin-dns', 'cluster-node-dns')
|
||||||
filepath = os.path.join(WIREGUARD_DIR, filename)
|
filepath = os.path.join(WIREGUARD_DIR, filename)
|
||||||
with open(filepath, 'w') as f:
|
with open(filepath, 'w') as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user