mosh.pl: Allow shell expansion of --server with --local
Fixes #946, matching the behavior of --server without --local. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
+1
-1
@@ -396,7 +396,7 @@ if ( $pid == 0 ) { # child
|
|||||||
delete $ENV{ 'SSH_CONNECTION' };
|
delete $ENV{ 'SSH_CONNECTION' };
|
||||||
chdir; # $HOME
|
chdir; # $HOME
|
||||||
print "MOSH IP ${userhost}\n";
|
print "MOSH IP ${userhost}\n";
|
||||||
exec( $server, @server );
|
exec( "$server " . shell_quote( @server ) );
|
||||||
die "Cannot exec $server: $!\n";
|
die "Cannot exec $server: $!\n";
|
||||||
}
|
}
|
||||||
if ( $use_remote_ip eq 'proxy' ) {
|
if ( $use_remote_ip eq 'proxy' ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user