*/
if (irc_in_addr_valid(&aconf->origin.addr))
local = &aconf->origin;
- else if (feature_bool(FEAT_VIRTUAL_HOST))
- local = &VirtualHost;
else
- local = NULL;
+ local = &VirtualHost;
cli_fd(cptr) = os_socket(local, SOCK_STREAM, cli_name(cptr));
if (cli_fd(cptr) < 0)
return 0;
completed_connection(cptr) : 1;
}
-/*
- * Setup local socket structure to use for binding to.
- */
-void set_virtual_host(const struct irc_in_addr *addr)
-{
- memset(&VirtualHost, 0, sizeof(VirtualHost));
- memcpy(&VirtualHost.addr, addr, sizeof(VirtualHost.addr));
-}
-
/*
* Find the real hostname for the host running the server (or one which
* matches the server's name) and its primary IP#. Hostname is stored