sql: support the no-tls option in the socks proxy (#80376)

postgres: support the no-tls option in the socks proxy
This commit is contained in:
Gábor Farkas 2024-01-15 09:57:43 +01:00 committed by GitHub
parent 7452fe92de
commit cfddc67a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,11 +13,12 @@ func GetSQLProxyOptions(cfg setting.SecureSocksDSProxySettings, dsInfo sqleng.Da
Username: dsInfo.UID,
},
ClientCfg: &sdkproxy.ClientCfg{
ClientCert: cfg.ClientCert,
ClientKey: cfg.ClientKey,
ServerName: cfg.ServerName,
RootCA: cfg.RootCA,
ProxyAddress: cfg.ProxyAddress,
ClientCert: cfg.ClientCert,
ClientKey: cfg.ClientKey,
ServerName: cfg.ServerName,
RootCA: cfg.RootCA,
ProxyAddress: cfg.ProxyAddress,
AllowInsecure: cfg.AllowInsecure,
},
}
if dsInfo.JsonData.SecureDSProxyUsername != "" {