Update gen.py

This commit is contained in:
House of Vanity
2021-07-07 12:46:39 +03:00
committed by GitHub
parent 4d1d07e040
commit a31704526a

2
gen.py
View File

@ -89,7 +89,7 @@ class Peer:
def gen_config(self, helper): def gen_config(self, helper):
"""Generate peer config""" """Generate peer config"""
filename = f"clients/{self.comment.replace(' ', '_')}" filename = f"/etc/wireguard/clients/{self.comment.replace(' ', '_')}"
_wg = wgconfig.WGConfig(f"{filename}.conf") _wg = wgconfig.WGConfig(f"{filename}.conf")
_wg.initialize_file() _wg.initialize_file()
_wg.add_attr(None, 'Address', self.allowed_ips) _wg.add_attr(None, 'Address', self.allowed_ips)