diff options
| author | 2007-05-28 18:52:55 +0000 | |
|---|---|---|
| committer | 2007-05-28 18:52:55 +0000 | |
| commit | d12b1c4897cc90ba390d876c281cacbbfd91cbc1 (patch) | |
| tree | c4d7eff63a1491f7b3cd6b53094163e7a7485ea5 /src/modules/m_ident.cpp | |
| parent | Display the proper transports for server ports *slap* :P (diff) | |
ipv6 ifdef tidyup by djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7176 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_ident.cpp')
| -rw-r--r-- | src/modules/m_ident.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 3c1106b4d..00d7524c7 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -147,13 +147,9 @@ class RFC1413 : public InspSocket { themlen = sizeof(sockaddr_in6); uslen = sizeof(sockaddr_in6); - success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen))); } - else - success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen))); -#else - success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen))); #endif + success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen))); if (success) { delete[] sock_us; |
