mirror of
https://github.com/hassio-addons/addon-wireguard.git
synced 2025-05-04 19:01:31 +00:00
Update config.sh to add PresharedKey to client config
Preshared keys were not added to the client config files. Added PresharedKey config item to "Write client configuration file" section
This commit is contained in:
parent
e1440b8802
commit
021cfe7e36
1 changed files with 2 additions and 0 deletions
|
@ -282,6 +282,8 @@ for peer in $(bashio::config 'peers|keys'); do
|
||||||
echo ""
|
echo ""
|
||||||
echo "[Peer]"
|
echo "[Peer]"
|
||||||
echo "PublicKey = ${server_public_key}"
|
echo "PublicKey = ${server_public_key}"
|
||||||
|
bashio::config.has_value "peers[${peer}].pre_shared_key" \
|
||||||
|
&& echo "PreSharedKey = ${pre_shared_key}"
|
||||||
echo "Endpoint = ${host}:${port}"
|
echo "Endpoint = ${host}:${port}"
|
||||||
echo "AllowedIPs = ${allowed_ips}"
|
echo "AllowedIPs = ${allowed_ips}"
|
||||||
echo "PersistentKeepalive = ${keep_alive}"
|
echo "PersistentKeepalive = ${keep_alive}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue