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

Fix host is not being passed #16

Merged
merged 2 commits into from Jun 13, 2016
Merged

Fix host is not being passed #16

merged 2 commits into from Jun 13, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jun 9, 2016

Fix #15 too.

@ghost ghost mentioned this pull request Jun 9, 2016
@@ -106,7 +106,7 @@ func (s *Server) Start(host, port string) error {
}
s.Infof("Listening on %s...", port)

return s.httpServer.GoListenAndServe(":"+port, http.HandlerFunc(s.handleHTTP))
return s.httpServer.GoListenAndServe(host+":"+port, http.HandlerFunc(s.handleHTTP))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to lines 92,99 are unnecessary, though this looks good to me!

@ghost
Copy link
Author

ghost commented Jun 13, 2016

Removed unnecessary changes. Sorry I'm new to Go. I'm still learning the language.

@jpillora jpillora merged commit c7c2b24 into jpillora:master Jun 13, 2016
@jpillora
Copy link
Owner

No worries, thanks for the PR :)

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

Successfully merging this pull request may close these issues.

1 participant