Closed jonasbb closed 7 years ago
Thank you for reporting! Will be looking forward to the pull request.
Changing lib.rs:671 to
let input = domain.trim_right_matches('.');
fixes the problem.
Since a valid domain name can only have one trailing .
, we must make sure this is the case before calling trim_right_matches
otherwise a domain like test.com..
will be parsed as a valid domain name.
Notice how the suffix is different for
localhost
andtest.localhost.
. I am not sure if this is the same or a different issue.Stracktrace:
Changing lib.rs:671 to
fixes the problem. I will provide a pull request with matching tests later.