Correct bug with unset default ports (Tony Mancill)

This commit is contained in:
duncan_ferguson 2009-04-03 19:48:58 +00:00
parent 16c466afc2
commit 3cd06e34d6
2 changed files with 7 additions and 2 deletions

View file

@ -3,6 +3,7 @@
* Allow user to set a different ConnectTimeout and -o string (Tony Mancill)
* Fix warning from 'mandb' (Tony Mancill)
* Continue connecting to unresolvable hosts (debian bug 499935) (Tony Mancill)
* Correct bug with unset default ports (Tony Mancill)
2009-03-26 Duncan Ferguson <duncan_ferguson@user.sf.net> - v3.25-1

View file

@ -849,8 +849,12 @@ sub setup_helper_script() {
\$port = \$port ? "\$port" : "$defaultport";
\$command .= "\$svr \$port";
} else {
\$port = \$port ? "-p \$port" : "-p $defaultport";
\$command .= "\$port \$svr";
if ((\$port) || ("$defaultport" ne "")) {
\$port = \$port ? "-p \$port" : "-p $defaultport";
\$command .= "\$port \$svr";
} else {
\$command .= "\$svr";
}
}
\$command .= " || sleep 5";
# warn("Running:\$command\\n"); # for debug purposes