fix: respect insecure flag when switch context (#3292)

mine
Arriv9l 2025-04-19 23:10:52 +08:00 committed by GitHub
parent 7deb202c2d
commit 5fe09d4f92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ func (c *Config) SwitchContext(name string) error {
flags.Impersonate = c.flags.Impersonate flags.Impersonate = c.flags.Impersonate
flags.ImpersonateGroup = c.flags.ImpersonateGroup flags.ImpersonateGroup = c.flags.ImpersonateGroup
flags.ImpersonateUID = c.flags.ImpersonateUID flags.ImpersonateUID = c.flags.ImpersonateUID
flags.Insecure = c.flags.Insecure
c.flags = flags c.flags = flags
return nil return nil