Add PreSharedKey to client.conf #177

This commit is contained in:
Fredrik Erlandsson 2021-11-18 14:19:26 +01:00 committed by GitHub
parent b69d056fc2
commit 284b5f13f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,6 +285,8 @@ for peer in $(bashio::config 'peers|keys'); do
echo "Endpoint = ${host}:${port}"
echo "AllowedIPs = ${allowed_ips}"
echo "PersistentKeepalive = ${keep_alive}"
bashio::config.has_value "peers[${peer}].pre_shared_key" \
&& echo "PreSharedKey = ${pre_shared_key}"
echo ""
} > "${config_dir}/client.conf"