marsevilspirit commented on code in PR #2888:
URL: https://github.com/apache/dubbo-go/pull/2888#discussion_r2102598007


##########
protocol/dubbo3/dubbo3_protocol.go:
##########
@@ -256,13 +258,25 @@ func (dp *DubboProtocol) openServer(url *common.URL, 
tripleCodecType tripleConst
 
        triOption := triConfig.NewTripleOption(opts...)
 
+       // TODO: remove config TLSConfig
+       // delete this branch
        tlsConfig := config.GetRootConfig().TLSConfig
        if tlsConfig != nil {
+               triOption.CACertFile = tlsConfig.CACertFile
                triOption.TLSCertFile = tlsConfig.TLSCertFile
                triOption.TLSKeyFile = tlsConfig.TLSKeyFile
-               triOption.CACertFile = tlsConfig.CACertFile
                triOption.TLSServerName = tlsConfig.TLSServerName
-               logger.Infof("Triple Server initialized the TLSConfig 
configuration")
+               logger.Infof("DUBBO3 Server initialized the TLSConfig 
configuration")
+       } else if tlsConfRaw, tlsOk := url.GetAttribute(constant.TLSConfigKey); 
tlsOk {
+               // use global TLSConfig handle tls
+               tlsConf := tlsConfRaw.(*global.TLSConfig)

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to