diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-02-20 19:52:48 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-28 07:39:03 -0400 |
commit | d891010fdd4562e29a5a468232cd7b30430d7570 (patch) | |
tree | c91d564fddde14a957cec85957e23268206b4fe7 /src/test/test_util.c | |
parent | ee1fca727cd739ba94c215a4a45a416bfcc8956e (diff) | |
download | tor-d891010fdd4562e29a5a468232cd7b30430d7570.tar.gz tor-d891010fdd4562e29a5a468232cd7b30430d7570.zip |
Allow alphanumeric TLDs in test for now
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r-- | src/test/test_util.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index ef1f420fe3..ee9b16494c 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -5589,11 +5589,10 @@ test_util_hostname_validation(void *arg) tt_assert(!string_is_valid_hostname("[2a00:1450:401b:800::200e]")); tt_assert(!string_is_valid_hostname("2a00:1450:401b:800::200e")); - // Last label of a hostname is required to be alphabetic according to - // RFC 1123 Section 2.1. - tt_assert(!string_is_valid_hostname("lucky.13")); - tt_assert(!string_is_valid_hostname("luck.y13")); - tt_assert(!string_is_valid_hostname("luck.y13.")); + // We allow alphanumeric TLDs. For discussion, see ticket #25055. + tt_assert(string_is_valid_hostname("lucky.13")); + tt_assert(string_is_valid_hostname("luck.y13")); + tt_assert(string_is_valid_hostname("luck.y13.")); // We allow punycode TLDs. For examples, see // http://data.iana.org/TLD/tlds-alpha-by-domain.txt |