From aae1709f7eedae91bc8e81789bfde4720c4d52c2 Mon Sep 17 00:00:00 2001 From: if13 <32564563+if13@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:01:21 +0300 Subject: [PATCH] Update wireguard_export.py --- wireguard_export.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wireguard_export.py b/wireguard_export.py index 93fb036..fe71bca 100644 --- a/wireguard_export.py +++ b/wireguard_export.py @@ -36,16 +36,16 @@ def generate_wireguard_keys(): (privkey, pubkey, sharkey) = generate_wireguard_keys() config = configparser.ConfigParser() config['Interface'] = {'PrivateKey': privkey, - 'ListenPort': '51820', + 'ListenPort': '', #insert 'Address': f'172.26.1.{cur_ip}', 'DNS': '192.9.200.124, 192.9.200.132', '#pubkey': f'{pubkey}'} config['Peer'] = { - 'PublicKey': '', + 'PublicKey': '', #insert 'PresharedKey': f'{sharkey}', 'AllowedIPs': '172.26.1.0/24, 192.9.200.0/24, 192.168.11.0/24', - 'Endpoint': 'xx.xx.xx.xx:xxxxx'} + 'Endpoint': 'xx.xx.xx.xx:xxxxx' } #insert name_config = input('введите дескрипшн конфига: ')