Improve client configuration annexation
The old approach did break BoringTun due to a bug (in BoringTun).
This commit is contained in:
parent
6669ffab32
commit
a6426a138e
1 changed files with 2 additions and 2 deletions
|
@ -588,8 +588,8 @@ else
|
|||
echo
|
||||
new_client_dns
|
||||
new_client_setup
|
||||
# Append the configuration to the WireGuard interface
|
||||
wg addconf wg0 <(wg-quick strip wg0)
|
||||
# Append new client configuration to the WireGuard interface
|
||||
wg addconf wg0 <(sed -n "/^# BEGIN_PEER $client/,/^# END_PEER $client/p" /etc/wireguard/wg0.conf)
|
||||
echo
|
||||
qrencode -t UTF8 < ~/"$client.conf"
|
||||
echo -e '\xE2\x86\x91 That is a QR code containing your client configuration.'
|
||||
|
|
Loading…
Add table
Reference in a new issue