1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/FTP/CreateConnection.txt
Vitaly the Alpaca (bot) e38754edea Main build (Jenkins)
2025-07-18 19:54:06 +03:00

20 lines
691 B
Plaintext
Vendored

Domain = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
// Simple connection
FTPSettings = OPI_FTP.GetConnectionSettings(Domain, 21, Login, Password);
Result = OPI_FTP.CreateConnection(FTPSettings);
// TLS connection through proxy
FTPInternalAddress = "172.33.0.11";
ProxyAddress = "127.0.0.1";
FTPSettings = OPI_FTP.GetConnectionSettings(FTPInternalAddress, 21, Login, Password);
ProxySettings = OPI_FTP.GetProxySettings(ProxyAddress, 1080, "socks5", "proxyuser", Password);
TLSSettings = OPI_FTP.GetTlsSettings(True);
Result = OPI_FTP.CreateConnection(FTPSettings, ProxySettings, TLSSettings);