mirror of
https://github.com/hwdsl2/wireguard-install.git
synced 2024-09-22 00:00:55 +02:00
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
|
@ -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…
Reference in New Issue
Block a user