|
|
@ -20,11 +20,12 @@ func TestFQDN(t *testing.T) {
|
|
|
|
{".", ".", false, 0},
|
|
|
|
{".", ".", false, 0},
|
|
|
|
{"foo.com", "foo.com.", false, 2},
|
|
|
|
{"foo.com", "foo.com.", false, 2},
|
|
|
|
{"foo.com.", "foo.com.", false, 2},
|
|
|
|
{"foo.com.", "foo.com.", false, 2},
|
|
|
|
|
|
|
|
{".foo.com.", "foo.com.", false, 2},
|
|
|
|
|
|
|
|
{".foo.com", "foo.com.", false, 2},
|
|
|
|
{"com", "com.", false, 1},
|
|
|
|
{"com", "com.", false, 1},
|
|
|
|
{"www.tailscale.com", "www.tailscale.com.", false, 3},
|
|
|
|
{"www.tailscale.com", "www.tailscale.com.", false, 3},
|
|
|
|
{"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com", "", true, 0},
|
|
|
|
{"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com", "", true, 0},
|
|
|
|
{strings.Repeat("aaaaa.", 60) + "com", "", true, 0},
|
|
|
|
{strings.Repeat("aaaaa.", 60) + "com", "", true, 0},
|
|
|
|
{".com", "", true, 0},
|
|
|
|
|
|
|
|
{"foo..com", "", true, 0},
|
|
|
|
{"foo..com", "", true, 0},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|