소스 검색

feat: use 172 first

xiaobing.wang 1 년 전
부모
커밋
8fe49e356b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      release/latest/setup.sh

+ 2 - 1
release/latest/setup.sh

@@ -105,11 +105,12 @@ local_ips() {
 }
 
 ips=`local_ips`
-subnets="192.168.222 172.22.222 169.254.222"
+subnets="172.22.222 169.254.222 192.168.222"
 
 for subnet in $subnets; do
     if [[ $ips != *$subnet* ]]; then
         SUBNET_PREFIX=$subnet
+        break
     fi
 done