Check the host is under registry suffix instead of public suffix

Guava now has support to distinguish a registry suffix from a public suffix. Since we are only interested in registrable domains, registry suffix is the proper thing to check.

See:

692446a303/guava/src/com/google/common/net/InternetDomainName.java

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176126916
This commit is contained in:
jianglai 2017-11-17 10:28:41 -08:00
parent 9ab68613a0
commit 0796a0ff1c
4 changed files with 50 additions and 59 deletions

View file

@ -1032,7 +1032,7 @@ allows creating a host name, and if necessary enqueues tasks to update DNS.
* 2304
* Superordinate domain for this hostname is in pending delete.
* 2306
* Host names must be at least two levels below the public suffix.
* Host names must be at least two levels below the registry suffix.
## HostDeleteFlow
@ -1131,7 +1131,7 @@ are enqueued to update DNS accordingly.
* Cannot rename an external host.
* 2306
* Cannot add and remove the same value.
* Host names must be at least two levels below the public suffix.
* Host names must be at least two levels below the registry suffix.
## LoginFlow