mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 03:14:00 +02:00
- more bugfixes related to ftp and firewall handling
This commit is contained in:
@@ -119,10 +119,19 @@ int ftpAuthSession(int id)
|
||||
*/
|
||||
int ftpCloseSession(int id)
|
||||
{
|
||||
if(ftpFindExternalFTPServerIp != NULL && ftpFindExternalFTPServerIp(sessions[id].remoteIp) > 0)
|
||||
#if DBG_LOG
|
||||
printf("In ftpCloseSession sessionId = %d, remote IP = %u, port = %d\n",
|
||||
id, sessions[id].remoteIp, sessions[id].remoteFTPServerPassivePort);
|
||||
#endif
|
||||
|
||||
if(ftpFindExternalFTPServerIp != NULL && ftpFindExternalFTPServerIp(sessions[id].remoteIp) != 0)
|
||||
{
|
||||
if(ftpRemoveUPNPPortForward)
|
||||
{
|
||||
#if DBG_LOG
|
||||
printf("In ftpCmdPasv sessionId = %d, removing UPNP port forward [%d]\n", id,sessions[id].remoteFTPServerPassivePort);
|
||||
#endif
|
||||
|
||||
ftpRemoveUPNPPortForward(sessions[id].remoteFTPServerPassivePort, sessions[id].remoteFTPServerPassivePort);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user