Yup, copy-paste from the other method.  This is only used in ./test/lib/net/validations_test.rb, which I actually need to update to include a test for hostname validation.