Development
This commit is contained in:
parent
efbd21cb59
commit
cc2f57aa83
3 changed files with 3 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ def _generate_wg_keypair():
|
|||
def _server_pubkey(iface):
|
||||
"""Read the server public key written by core.py --apply."""
|
||||
try:
|
||||
with open(f'{CONFIGS_DIR}/.wg-{iface}.pub') as f:
|
||||
with open(f'{CONFIGS_DIR}/.{iface}.pub') as f:
|
||||
return f.read().strip()
|
||||
except OSError:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue