Also pass connected FTP address to callback function
Some checks failed
Tests / prove (push) Has been cancelled
Package and upload artifacts / build (push) Has been cancelled
Close inactive / close-inactive (push) Has been cancelled

This commit is contained in:
Jamie Cameron
2026-07-13 16:34:30 -07:00
parent 70011c11c0
commit ed3cd51e40

View File

@@ -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) {