浏览代码

Increase domain components

Bob Mottram 10 年前
父节点
当前提交
4130db49ea
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3
    3
      src/freedombone
  2. 3
    3
      src/freedombone-config

+ 3
- 3
src/freedombone 查看文件

420
   # count the number of dots in the domain name
420
   # count the number of dots in the domain name
421
   dots=${TEST_DOMAIN_NAME//[^.]}
421
   dots=${TEST_DOMAIN_NAME//[^.]}
422
   no_of_dots=${#dots}
422
   no_of_dots=${#dots}
423
-  if (( $no_of_dots > 2 )); then
424
-      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type x.y.z or y.z"
423
+  if (( $no_of_dots > 3 )); then
424
+      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type w.x.y.z, x.y.z or y.z"
425
   fi
425
   fi
426
   if (( $no_of_dots == 0 )); then
426
   if (( $no_of_dots == 0 )); then
427
-      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type x.y.z or y.z"
427
+      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type w.x.y.z, x.y.z or y.z"
428
   fi
428
   fi
429
 }
429
 }
430
 
430
 

+ 3
- 3
src/freedombone-config 查看文件

177
   # count the number of dots in the domain name
177
   # count the number of dots in the domain name
178
   dots=${TEST_DOMAIN_NAME//[^.]}
178
   dots=${TEST_DOMAIN_NAME//[^.]}
179
   no_of_dots=${#dots}
179
   no_of_dots=${#dots}
180
-  if (( $no_of_dots > 2 )); then
181
-      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type x.y.z or y.z"
180
+  if (( $no_of_dots > 3 )); then
181
+      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type w.x.y.z, x.y.z or y.z"
182
   fi
182
   fi
183
   if (( $no_of_dots == 0 )); then
183
   if (( $no_of_dots == 0 )); then
184
-      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type x.y.z or y.z"
184
+      TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type w.x.y.z, x.y.z or y.z"
185
   fi
185
   fi
186
 }
186
 }
187
 
187