This is an automated email from the ASF dual-hosted git repository.
zhaoyunxing pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 9007a29a1 Fix:ENV DUBBO_IP_TO_REGISTRY doesn't work (#2138)
9007a29a1 is described below
commit 9007a29a14939cca30e555e99e126f39ea4f58fc
Author: FengZhang <[email protected]>
AuthorDate: Sun Nov 27 16:06:33 2022 +0800
Fix:ENV DUBBO_IP_TO_REGISTRY doesn't work (#2138)
* fix don't support DUBBO_IP_TO_REGISTRY
---
registry/servicediscovery/service_discovery_registry.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/registry/servicediscovery/service_discovery_registry.go
b/registry/servicediscovery/service_discovery_registry.go
index 6d1362b74..ffc0744d4 100644
--- a/registry/servicediscovery/service_discovery_registry.go
+++ b/registry/servicediscovery/service_discovery_registry.go
@@ -165,6 +165,7 @@ func (s *serviceDiscoveryRegistry) Register(url
*common.URL) error {
if !shouldRegister(url) {
return nil
}
+ common.HandleRegisterIPAndPort(url)
ok, err := s.metaDataService.ExportURL(url)
if err != nil {