What I meant
parent
e17047184c
commit
1821bec28c
|
@ -62,7 +62,7 @@ fi
|
||||||
|
|
||||||
# Get domains for each peer
|
# Get domains for each peer
|
||||||
if peers="[$("${LIB_DIR}/ips_to_peers" json <<<"${peers}")]"; then
|
if peers="[$("${LIB_DIR}/ips_to_peers" json <<<"${peers}")]"; then
|
||||||
printf '{"token":"%s","peers":%s}' "${token!}" "${peers!}" | "${LIB_DIR}/http_res" 200 'application/json'
|
printf '{"token":"%s","peers":%s}' "${token:?}" "${peers:?}" | "${LIB_DIR}/http_res" 200 'application/json'
|
||||||
printf 'Sent peers to admin %s\n' "${ip}" >>"${LOGFILE}"
|
printf 'Sent peers to admin %s\n' "${ip}" >>"${LOGFILE}"
|
||||||
else
|
else
|
||||||
printf 'ERROR: Failed to lookup user: %s\n' "${ip}" >>"${LOGFILE}"
|
printf 'ERROR: Failed to lookup user: %s\n' "${ip}" >>"${LOGFILE}"
|
||||||
|
|
Loading…
Reference in New Issue