diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-06-27 20:58:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-06-27 20:58:49 +0000 |
commit | f4522a5749fdee580ba03937d4445f49a78c9fe0 (patch) | |
tree | cb664ddbf46014defe67313fcf719cfc7f81c6a8 /src/inspsocket.cpp | |
parent | 8a8d0540aa4da86f1ab78aa1537d123faa3cabf7 (diff) |
Commenting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4069 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |