pkg/net: work around upstream idna bug breaking net.FQDN validation
idna.StrictDomainName does not work without MapForLookup or
ValidateForRegistration, causing net.FQDN to accept any string
including those with spaces. Switch to MapForLookup as a workaround.
Fixes #2431.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I898fd8c244d09fa3850878ea981b32b8bcc24b72
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1235282
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>