mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
[169680] [ftp] FTP files subsystem and service should use passive mode
This commit is contained in:
parent
98929a2c3c
commit
1a72c27d20
1 changed files with 7 additions and 8 deletions
|
@ -44,14 +44,6 @@ public class FTPConnectorService extends AbstractConnectorService
|
||||||
{
|
{
|
||||||
super(SystemFileResources.RESID_FTP_CONNECTORSERVICE_NAME,SystemFileResources.RESID_FTP_CONNECTORSERVICE_DESCRIPTION, host, port);
|
super(SystemFileResources.RESID_FTP_CONNECTORSERVICE_NAME,SystemFileResources.RESID_FTP_CONNECTORSERVICE_DESCRIPTION, host, port);
|
||||||
_ftpService = new FTPService();
|
_ftpService = new FTPService();
|
||||||
|
|
||||||
_propertySet = getPropertySet("FTP Settings"); //$NON-NLS-1$
|
|
||||||
|
|
||||||
if(_propertySet==null)
|
|
||||||
{
|
|
||||||
_propertySet = createPropertySet("FTP Settings"); //$NON-NLS-1$
|
|
||||||
_propertySet.addProperty("passive","false",PropertyType.getEnumPropertyType(new String[]{"true","false"})); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void internalConnect(IProgressMonitor monitor) throws Exception
|
public void internalConnect(IProgressMonitor monitor) throws Exception
|
||||||
|
@ -61,6 +53,13 @@ public class FTPConnectorService extends AbstractConnectorService
|
||||||
|
|
||||||
private void internalConnect() throws Exception
|
private void internalConnect() throws Exception
|
||||||
{
|
{
|
||||||
|
_propertySet = getPropertySet("FTP Settings"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
if(_propertySet==null)
|
||||||
|
{
|
||||||
|
_propertySet = createPropertySet("FTP Settings"); //$NON-NLS-1$
|
||||||
|
_propertySet.addProperty("passive","false",PropertyType.getEnumPropertyType(new String[]{"true","false"})); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||||
|
}
|
||||||
|
|
||||||
SystemSignonInformation info = getPasswordInformation();
|
SystemSignonInformation info = getPasswordInformation();
|
||||||
_ftpService.setHostName(info.getHostname());
|
_ftpService.setHostName(info.getHostname());
|
||||||
|
|
Loading…
Add table
Reference in a new issue