From f4522a5749fdee580ba03937d4445f49a78c9fe0 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 27 Jun 2006 20:58:49 +0000 Subject: Commenting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4069 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 1989e43b1..012fc38de 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -157,6 +157,14 @@ bool InspSocket::DoResolve() return true; } +/* Most irc servers require you to specify the ip you want to bind to. + * If you dont specify an IP, they rather dumbly bind to the first IP + * of the box (e.g. INADDR_ANY). In InspIRCd, we scan thought the IP + * addresses we've bound server ports to, and we try and bind our outbound + * connections to the first usable non-loopback and non-any IP we find. + * This is easier to configure when you have a lot of links and a lot + * of servers to configure. + */ bool InspSocket::BindAddr() { insp_inaddr n; -- cgit v1.2.3