提交 0853f837 编写于 作者: N ning

code refactor

上级 21db56ec
......@@ -67,6 +67,14 @@ func New(cf Config) *SsoClient {
cli.DefaultRoles = cf.DefaultRoles
cli.CoverAttributes = cf.CoverAttributes
if cf.SkipTlsVerify {
transport := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
cli.HTTPClient = &http.Client{Transport: transport}
}
return &cli
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册