Skip to content

Commit 1fc1cd5

Browse files
committed
account for a single peer listed for keepalive
1 parent 841ffdf commit 1fc1cd5

File tree

1 file changed

+1
-1
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-wireguard-confs

1 file changed

+1
-1
lines changed

root/etc/s6-overlay/s6-rc.d/init-wireguard-confs/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ if [ -n "$PEERS" ]; then
135135
PEERS_ARRAY=($(echo "$PEERS" | tr ',' ' '))
136136
fi
137137
PEERS_COUNT=$(echo "${#PEERS_ARRAY[@]}")
138-
if [ "${PERSISTENTKEEPALIVE_PEERS}" = "all" ] || [ "${PERSISTENTKEEPALIVE_PEERS}" =~ *,* ]; then
138+
if [ -n "${PERSISTENTKEEPALIVE_PEERS}" ]; then
139139
echo "**** PersistentKeepalive will be set for: ${PERSISTENTKEEPALIVE_PEERS/,/ } ****"
140140
PERSISTENTKEEPALIVE_PEERS_ARRAY=($(echo "$PERSISTENTKEEPALIVE_PEERS" | tr ',' ' '))
141141
fi

0 commit comments

Comments
 (0)