0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::server: Eliminate the abstraction-bleeding loopback check here.

This commit is contained in:
Jason Volk 2019-09-30 13:26:15 -07:00
parent 035ec56bc3
commit c7cf1ab62a

View file

@ -1441,14 +1441,6 @@ void
ircd::server::peer::open_links()
try
{
if(unlikely(is_loop(open_opts.ipport)))
if(net::server_name(open_opts) != string_view{ircd::network_name})
throw unavailable
{
"Won't open loopback for remote host '%s'",
net::server_name(open_opts),
};
// The hostname in open_opts should still reference this object's string.
assert(host(open_opts.hostport).data() == this->hostcanon.data());