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('введите дескрипшн конфига: ')