mirror of
https://github.com/webmin/webmin.git
synced 2026-07-25 02:40:37 +01:00
Also pass connected FTP address to callback function
This commit is contained in:
@@ -3651,7 +3651,8 @@ if ($gconfig{'ftp_proxy'} =~ /^http:\/\/(\S+):(\d+)/ && !&no_proxy($_[0])) {
|
|||||||
|
|
||||||
if (!$connected) {
|
if (!$connected) {
|
||||||
# connect to host and login with real FTP protocol
|
# connect to host and login with real FTP protocol
|
||||||
&open_socket($host, $port, "SOCK", $_[3]) || return 0;
|
my $ip = &open_socket($host, $port, "SOCK", $_[3]) || return 0;
|
||||||
|
&$cbfunc(7, $ip) if ($cbfunc);
|
||||||
alarm(0) if ($timeout);
|
alarm(0) if ($timeout);
|
||||||
if ($main::download_timed_out) {
|
if ($main::download_timed_out) {
|
||||||
if ($error) {
|
if ($error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user