diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index b0399c104..faa98a30a 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -3837,8 +3837,8 @@ if ($gconfig{'ftp_proxy'} =~ /^http:\/\/(\S+):(\d+)/ && !&no_proxy($_[0])) { if (!$connected) { # connect to host and login with real FTP protocol - &open_socket($host, $port, "SOCK", $_[3], undef, - $address_callback) || return 0; + my $ip = &open_socket($host, $port, "SOCK", $_[3]) || return 0; + &$cbfunc(7, $ip) if ($cbfunc); alarm(0) if ($timeout); if ($main::download_timed_out) { if ($error) {