Fixing a wireguard warning
by setting restrictive access to the interface config file.
This commit is contained in:
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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user