Fixing a wireguard warning

by setting restrictive access to the interface config file.
This commit is contained in:
Erik Thuning 2025-03-04 14:05:58 +01:00
parent b6865f9635
commit c72d079342

@ -316,6 +316,7 @@ class WireGuard:
return
with open(self.server_config_file, 'w') as sf:
sf.write(self.generate_server_config())
self.server_config_file.chmod(0o600)
# Sync updated settings to interface
run_command('reload')