From 4491142a7bb2813f0777632a53e5dad4fa9c950a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 15 May 2022 21:19:11 -0400 Subject: [PATCH] fix: ensure we default SSH_NAME to NAME when filtering apps This mirrors how SSH_NAME is populated for the user-auth trigger. --- plugins/common/functions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/common/functions.go b/plugins/common/functions.go index ea475737b..986c4d084 100644 --- a/plugins/common/functions.go +++ b/plugins/common/functions.go @@ -17,6 +17,9 @@ func filterApps(apps []string) ([]string, error) { } sshName := os.Getenv("SSH_NAME") + if sshName == "" { + sshName = os.Getenv("NAME") + } if sshName == "" { sshName = "default" }