mirror of
https://github.com/k4yt3x/wg-meshconf.git
synced 2024-11-25 09:03:11 +01:00
Merge pull request #7 from krombel/patch-1
Fix: Use currect alias and description for peers
This commit is contained in:
commit
8632583a4b
@ -398,10 +398,10 @@ def generate_configs(output_path):
|
||||
continue
|
||||
config.write('\n[Peer]\n')
|
||||
print(p.private_key)
|
||||
if peer.alias:
|
||||
config.write(f'# Alias: {peer.alias}\n')
|
||||
if peer.description:
|
||||
config.write(f'# Description: {peer.description}\n')
|
||||
if p.alias:
|
||||
config.write(f'# Alias: {p.alias}\n')
|
||||
if p.description:
|
||||
config.write(f'# Description: {p.description}\n')
|
||||
config.write(f'PublicKey = {wg.pubkey(p.private_key)}\n')
|
||||
config.write(f'AllowedIPs = {p.address}\n')
|
||||
if p.public_address != '':
|
||||
|
Loading…
Reference in New Issue
Block a user