Fixed wrong var call

master
Keith Irwin 2022-09-15 16:42:52 -06:00
parent a9c2564292
commit f761459ee2
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ fi
# Filter out single user (if provided)
if [ "${un}" != '' ]; then
peers="$(grep "${IPV4_NET%.*.*}\.${un}\." <<<"${wg_output}" 2>/dev/null)"
peers="$(grep "${IPV4_NET%.*.*}\.${un}\." <<<"${peers}" 2>/dev/null)"
if [ "${peers}" == '' ]; then
printf 'User number %s not found!\n' "${un}" >>"${LOGFILE}"
printf 'User not found!\n' | "${LIB_DIR}/http_res" 404