Procházet zdrojové kódy

Increase domain components

Bob Mottram před 10 roky
rodič
revize
4130db49ea
2 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 3
    3
      src/freedombone
  2. 3
    3
      src/freedombone-config

+ 3
- 3
src/freedombone Zobrazit soubor

@@ -420,11 +420,11 @@ function validate_domain_name {
420 420
   # count the number of dots in the domain name
421 421
   dots=${TEST_DOMAIN_NAME//[^.]}
422 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 425
   fi
426 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 428
   fi
429 429
 }
430 430
 

+ 3
- 3
src/freedombone-config Zobrazit soubor

@@ -177,11 +177,11 @@ function validate_domain_name {
177 177
   # count the number of dots in the domain name
178 178
   dots=${TEST_DOMAIN_NAME//[^.]}
179 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 182
   fi
183 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 185
   fi
186 186
 }
187 187