Adds empty hostname support in built-in server.