Set rxfr requests for all admin stuff
parent
8b52db372c
commit
b038d943b9
|
@ -87,7 +87,7 @@ if ! peers="$(sudo /usr/bin/wg show "${TLD}" allowed-ips)"; then
|
|||
fi
|
||||
|
||||
# Get peer domains
|
||||
if ! peers="$("${LIB_DIR}/ips_to_peers_rdns" tsv <<<"${peers}")"; then
|
||||
if ! peers="$("${LIB_DIR}/ips_to_peers_rxfr" tsv <<<"${peers}")"; then
|
||||
printf 'ERROR! Failed to retrieve peers for %s!\n' "${ip}" >>"${LOGFILE}"
|
||||
exit 10
|
||||
fi
|
||||
|
|
|
@ -60,7 +60,7 @@ if [ "${user_peers}" == "" ]; then
|
|||
fi
|
||||
|
||||
# Get peer domains
|
||||
if ! peer="$("${LIB_DIR}/ips_to_peers_rdns" tsv <<<"${user_peers}" | grep "${pubkey}")"; then
|
||||
if ! peer="$("${LIB_DIR}/ips_to_peers_rxfr" tsv <<<"${user_peers}" | grep "${pubkey}")"; then
|
||||
printf 'ERROR! Peer %s not found for user %s!\n' "${pubkey}" "${ip}" >>"${LOGFILE}" &
|
||||
printf 'Peer not found\n' | "${LIB_DIR}/http_res" 404
|
||||
exit 6
|
||||
|
|
Loading…
Reference in New Issue