Fixed wrong var call
parent
a9c2564292
commit
f761459ee2
|
@ -52,7 +52,7 @@ fi
|
||||||
|
|
||||||
# Filter out single user (if provided)
|
# Filter out single user (if provided)
|
||||||
if [ "${un}" != '' ]; then
|
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
|
if [ "${peers}" == '' ]; then
|
||||||
printf 'User number %s not found!\n' "${un}" >>"${LOGFILE}"
|
printf 'User number %s not found!\n' "${un}" >>"${LOGFILE}"
|
||||||
printf 'User not found!\n' | "${LIB_DIR}/http_res" 404
|
printf 'User not found!\n' | "${LIB_DIR}/http_res" 404
|
||||||
|
|
Loading…
Reference in New Issue