Fixed SSH detection

This commit is contained in:
Emmanuel BENOîT 2020-10-20 20:35:33 +02:00
parent 43d9d3750e
commit 1f29c5a4a6

2
spp.pl
View file

@ -812,7 +812,7 @@ sub render_userhost
my $is_remote = 0; my $is_remote = 0;
if ( $hn == 2 || $CONFIG{uh_remote} ) { if ( $hn == 2 || $CONFIG{uh_remote} ) {
foreach my $ev ( qw( SSH_CLIENT SSH2_CLIENT SSH_TTY ) ) { foreach my $ev ( qw( SSH_CLIENT SSH2_CLIENT SSH_TTY ) ) {
if ( exists($ENV{$ev}) && $ENV{$ev} != '' ) { if ( exists($ENV{$ev}) && $ENV{$ev} ne '' ) {
$is_remote = 1; $is_remote = 1;
last; last;
} }