Update InstallNET.sh

This commit is contained in:
Molly Lau 2022-12-08 23:37:23 +09:00 committed by GitHub
parent c1c7966154
commit 65ff457961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -923,7 +923,7 @@ if [[ "$setNet" == "0" ]]; then
# Intercept the A and B class of the current ip address of gateway.
tmpIpGateFirst=`echo "$minIpGate" | cut -d'.' -f 1,2`
tmpIpGateThird=`echo "$minIpGate" | cut -d'.' -f 3`
# If the class A and B number of the current local ip address is as same as current gateway, this gateway may a valid one.
# If the class A and B class of the current local ip address is as same as current gateway, this gateway may a valid one.
[[ "$FrFirst" == "$tmpIpGateFirst" ]] && {
if [[ "$FrThird" == "$tmpIpGateThird" ]]; then
ipGate="$FirstRoute"