fix wireguard client config

This commit is contained in:
mwiegand 2022-02-23 17:19:34 +01:00
parent 1b5b354cc9
commit ad145c3ace

View file

@ -7,7 +7,7 @@ from ipaddress import ip_network, ip_interface
repo = Repository(dirname(dirname(realpath(__file__))))
server_node = repo.get_node(argv[2])
server_node = repo.get_node(argv[1])
data = server_node.metadata.get(f'wireguard/clients/{argv[2]}')
vpn_network = ip_interface(server_node.metadata.get('wireguard/my_ip')).network