You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
20 lines
691 B
Plaintext
Vendored
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);
|