mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
- compile fix for win32 VC++
This commit is contained in:
@@ -327,6 +327,7 @@ socket_t ftpAcceptDataConnection(socket_t listner)
|
|||||||
struct sockaddr_in clientinfo;
|
struct sockaddr_in clientinfo;
|
||||||
unsigned len;
|
unsigned len;
|
||||||
SOCKET dataSocket;
|
SOCKET dataSocket;
|
||||||
|
ip_t remoteIP;
|
||||||
|
|
||||||
len = sizeof(clientinfo);
|
len = sizeof(clientinfo);
|
||||||
|
|
||||||
@@ -338,7 +339,7 @@ socket_t ftpAcceptDataConnection(socket_t listner)
|
|||||||
|
|
||||||
closesocket(listner); // Server-Socket wird nicht mehr gebrauch deshalb schließen
|
closesocket(listner); // Server-Socket wird nicht mehr gebrauch deshalb schließen
|
||||||
|
|
||||||
ip_t remoteIP = ntohl(clientinfo.sin_addr.s_addr);
|
remoteIP = ntohl(clientinfo.sin_addr.s_addr);
|
||||||
if(ftpIsValidClient && ftpIsValidClient(remoteIP) == 0)
|
if(ftpIsValidClient && ftpIsValidClient(remoteIP) == 0)
|
||||||
{
|
{
|
||||||
if(VERBOSE_MODE_ENABLED) printf("Connection with %s is NOT a valid trusted client, dropping connection.\n", inet_ntoa(clientinfo.sin_addr));
|
if(VERBOSE_MODE_ENABLED) printf("Connection with %s is NOT a valid trusted client, dropping connection.\n", inet_ntoa(clientinfo.sin_addr));
|
||||||
|
Reference in New Issue
Block a user