mirror of
https://github.com/house-of-vanity/Wireguard-Peer-Manager.git
synced 2025-07-07 01:34:08 +00:00
Update gen.py
This commit is contained in:
2
gen.py
2
gen.py
@ -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)
|
||||||
|
Reference in New Issue
Block a user