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

Heartbeat HTTP monitor should default to port 80 #3915

Closed
urso opened this issue Apr 5, 2017 · 1 comment
Closed

Heartbeat HTTP monitor should default to port 80 #3915

urso opened this issue Apr 5, 2017 · 1 comment

Comments

@urso
Copy link

urso commented Apr 5, 2017

If port number is missing HTTP monitor loading fails with: manager.go:125: ERR failed to load monitor tasks: missing port in address. The monitor should default to port 80, if no port is configured.

@andrewkroh
Copy link
Member

And it should default to 443 for HTTPS URLs.

@urso urso mentioned this issue Apr 7, 2017
12 tasks
monicasarbu pushed a commit that referenced this issue Apr 10, 2017
* heartbeat: setup default ports in http monitors

Default http to 80 and https to 443

Resolves #3915

* Add entry to changelog

* Add test

Also refactor the code, turns out net.SplitHostPort() doesn't like hosts
without ports.
tsg pushed a commit that referenced this issue Apr 11, 2017
…tors (#3978)

* heartbeat: setup default ports in http monitors

Default http to 80 and https to 443

Resolves #3915

(cherry picked from commit c888f3f)

* Add entry to changelog

(cherry picked from commit aa40255)

* Add test

Also refactor the code, turns out net.SplitHostPort() doesn't like hosts
without ports.

(cherry picked from commit bd6898c)

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

No branches or pull requests

2 participants