small tweaks
This commit is contained in:
parent
9629b0ce8b
commit
83a2c0b789
|
@ -243,7 +243,7 @@ func IsSubDomain(parent, child string) bool {
|
|||
func IsFqdn(s string) bool {
|
||||
l := len(s)
|
||||
if l == 0 {
|
||||
return false // ?
|
||||
return false
|
||||
}
|
||||
return s[l-1] == '.'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue