diff options
Diffstat (limited to 'ssh')
| -rw-r--r-- | ssh/tailssh/tailssh.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh/tailssh/tailssh.go b/ssh/tailssh/tailssh.go index 91e1779bf..289807ea3 100644 --- a/ssh/tailssh/tailssh.go +++ b/ssh/tailssh/tailssh.go @@ -736,7 +736,7 @@ func (c *conn) isStillValid() bool { if !a.Accept && a.HoldAndDelegate == "" { return false } - return c.localUser.Username == localUser + return c.localUser != nil && c.localUser.Username == localUser } // checkStillValid checks that the conn is still valid per the latest SSHPolicy. |
