diff options
| author | 2006-06-27 20:58:40 +0000 | |
|---|---|---|
| committer | 2006-06-27 20:58:40 +0000 | |
| commit | 9cff9e30ca567d0569bf9e83f9fc650cacdc31d8 (patch) | |
| tree | d07df2538b6f43fc2d1fc3ca9a75cb3dc1e42f3a /src/socket.cpp | |
| parent | We can re-enable special's security fix now - note this is good for boxes wit... (diff) | |
Commenting
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4068 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
