Fixed SSH detection
This commit is contained in:
parent
43d9d3750e
commit
1f29c5a4a6
1 changed files with 1 additions and 1 deletions
2
spp.pl
2
spp.pl
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue