Skip to content

Commit

Permalink
fix host
Browse files Browse the repository at this point in the history
  • Loading branch information
quiet-xu committed Apr 11, 2022
1 parent 97f45f4 commit 3a8b9fa
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 3a8b9fa

Please sign in to comment.