diff --git a/setup/so-functions b/setup/so-functions index 68d4ed01f..9dd6bc1e7 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -751,7 +751,7 @@ check_sos_appliance() { } compare_main_nic_ip() { - if [[ "$MNIC" =~ tun || "$MNIC" =~ wg || "$MNIC" =~ vpn ]]; then + if [[ "$MNIC" =~ ^('tun'|'vpn'|'wg')$ ]]; then echo "This is a VPN" else if [[ "$MAINIP" != "$MNIC_IP" ]]; then