The requirement to specify a hostname comes from line 326 by the way.