Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取路由使用端口问题 #12

Closed
travelliu opened this issue Sep 10, 2019 · 0 comments
Closed

获取路由使用端口问题 #12

travelliu opened this issue Sep 10, 2019 · 0 comments

Comments

@travelliu
Copy link

`
for _, server := range config.httpServerAddresses {
u.Host = fmt.Sprintf("%s:%d", server.host, config.httpServerPort)
logger.Info("Getting router config from %s", u.String())

	resp, err := client.Get(u.String())
	if err != nil {
		logger.Warning("Error occurred while getting router config from url %s", u.String())
		continue
	}

	c.parse(resp.Body)
	return
}

`

u.Host = fmt.Sprintf("%s:%d", server.host, config.httpServerPort) 这个怎么是使用了默认端口,不是应该使用 server.port吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant