Skip to content

Commit cc17d3b

Browse files
pablo-ruthPablo RUTH
andauthored
fix: issue with permit-X11-forwarding case using viper (#231)
Co-authored-by: Pablo RUTH <contact@pablo-ruhth.fr>
1 parent 98aab3a commit cc17d3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

builtin/signer/local/Signer.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ func (s *Signer) Init(config *viper.Viper) error {
7575
s.CriticalOptions = config.GetStringMapString("criticalOptions")
7676
s.Extensions = config.GetStringMapString("extensions")
7777

78+
// Little hack to handle permit-X11-forwarding case issue with viper https://github.com/signmykeyio/signmykey/issues/230
79+
if _, ok := s.Extensions["permit-x11-forwarding"]; ok {
80+
s.Extensions["permit-X11-forwarding"] = ""
81+
delete(s.Extensions, "permit-x11-forwarding")
82+
}
83+
7884
return nil
7985
}
8086

0 commit comments

Comments
 (0)