Update install-dsmon.sh

This commit is contained in:
2023-04-08 10:32:38 -05:00
parent 7776548d61
commit 766ab471ce

View File

@@ -121,7 +121,7 @@ if [ "${SET_SERVERMONID}" = "new" ]; then
ADD_SERVERIP=(`hostname -I`)
ADD_SERVERIPS=''
for nip in "${ADD_SERVERIP[@]}"; do
if [[ "${nip}" == *"."* ]]; then
if [[ "${nip}" == *"."* ]] && [[ "${nip}" != *"172"* ]]; then
if [ "${ADD_SERVERIPS}" = "" ]; then
SERVERIPS=${nip}
else