From 9cff9e30ca567d0569bf9e83f9fc650cacdc31d8 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 27 Jun 2006 20:58:40 +0000 Subject: Commenting git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4068 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 493f2447b..6616ebf0a 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -159,6 +159,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() { in_addr n; -- cgit v1.3.1-10-gc9f91