Always use given name when opening ssh connections

Do not the resolved host name when opening the ssh connection - the resolution is only used to check the hosts exists rather than get the real IP.  Debian bug 533406
This commit is contained in:
Duncan Ferguson 2009-12-02 09:20:56 +00:00
parent 7645bc52ee
commit 5712301e65
2 changed files with 2 additions and 1 deletions

View file

@ -11,6 +11,7 @@
- ignore directories of the same name, and
- always search for the binary if it is not fully qualified
- Thanks to Ian Marsh for the patch
* Always use the given host name, not the resolved host name, when opening the ssh connection (Debian bug 533406)
2009-09-24 Duncan Ferguson <duncan_ferguson@user.sf.net> - v3.27

View file

@ -1106,7 +1106,7 @@ sub open_client_windows(@) {
# affecting the main program
$servers{$server}{realname} .= "==" if ( !$realname );
my $exec
= "$config{terminal} $color $config{terminal_args} $config{terminal_allow_send_events} $config{terminal_title_opt} '$config{title}: $servers{$server}{connect_string}' -font $config{terminal_font} -e \"$^X\" \"-e\" '$helper_script' '$servers{$server}{pipenm}' '$servers{$server}{realname}' '$servers{$server}{username}' '$servers{$server}{port}'";
= "$config{terminal} $color $config{terminal_args} $config{terminal_allow_send_events} $config{terminal_title_opt} '$config{title}: $servers{$server}{connect_string}' -font $config{terminal_font} -e \"$^X\" \"-e\" '$helper_script' '$servers{$server}{pipenm}' '$servers{$server}{givenname}' '$servers{$server}{username}' '$servers{$server}{port}'";
logmsg( 2, "Terminal exec line:\n$exec\n" );
exec($exec) == 0 or warn("Failed: $!");
}