浏览代码

Return on cancel

Bob Mottram 9 年前
父节点
当前提交
dc4e2405db
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/freedombone-controlpanel

+ 3
- 0
src/freedombone-controlpanel 查看文件

@@ -1271,6 +1271,7 @@ function set_dynamic_IP {
1271 1271
     case $sel in
1272 1272
         0) revert_to_dynamic=1
1273 1273
            ;;
1274
+        1) return;;
1274 1275
     esac
1275 1276
 
1276 1277
     if [ $revert_to_dynamic ]; then
@@ -1315,6 +1316,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
1315 1316
                return
1316 1317
            fi
1317 1318
            ;;
1319
+        1) return;;
1318 1320
     esac
1319 1321
 
1320 1322
     # get the gateway
@@ -1330,6 +1332,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
1330 1332
                return
1331 1333
            fi
1332 1334
            ;;
1335
+        1) return;;
1333 1336
     esac
1334 1337
 
1335 1338
     if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then