Skip to content

Commit

Permalink
fix host (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
quiet-xu authored Apr 12, 2022
1 parent 1945966 commit 4dcebce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/base_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func (r *BaseRegistry) providerRegistry(c *common.URL, params url.Values, f crea
}
logger.Debugf("provider url params:%#v", params)
var host string
if len(c.Ip) > 0 {
if len(c.Ip) == 0 {
host = localIP
} else {
host = c.Ip
Expand Down

0 comments on commit 4dcebce

Please sign in to comment.