mirror of
https://github.com/hassio-addons/addon-wireguard.git
synced 2025-05-04 19:01:31 +00:00
Add PreSharedKey to client.conf #177
This commit is contained in:
parent
b69d056fc2
commit
284b5f13f8
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue