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:
casgh23 2024-05-18 12:42:03 +02:00 committed by GitHub
parent e1440b8802
commit 021cfe7e36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}"