summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
authorfcolin2010-11-30 17:39:22 +0000
committerfcolin2010-11-30 17:39:22 +0000
commit4d2f14d5e0ef1477b64f5214af535b6dd358c3b8 (patch)
tree560795b34b8c981544d481d45005cc9cefc70917 /src/ivy.c
parenta7117dc569920436cf08d4954fe02b6ccd560c74 (diff)
downloadivy-c-4d2f14d5e0ef1477b64f5214af535b6dd358c3b8.zip
ivy-c-4d2f14d5e0ef1477b64f5214af535b6dd358c3b8.tar.gz
ivy-c-4d2f14d5e0ef1477b64f5214af535b6dd358c3b8.tar.bz2
ivy-c-4d2f14d5e0ef1477b64f5214af535b6dd358c3b8.tar.xz
remove reverse DNS resolution in CheckConnected
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ivy.c b/src/ivy.c
index 3aedc4d..1074974 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -482,10 +482,9 @@ static RWIvyClientPtr CheckConnected( Client sclnt )
RWIvyClientPtr iclient;
struct sockaddr_storage* addr1;
struct sockaddr_storage* addr2;
- char *remotehost;
unsigned short remoteport;
- SocketGetRemoteHost( sclnt, &remotehost, &remoteport );
+ remoteport = SocketGetRemotePort( sclnt );
if ( remoteport == 0 ) /* Old Ivy Protocol Dont check */
return 0;