Skip to content

Commit c7c2b24

Browse files
authored
Merge pull request jpillora#16 from KazeFlame/fix-1
Fix host is not being passed
2 parents 1382a4a + 5398b7d commit c7c2b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (s *Server) Start(host, port string) error {
106106
}
107107
s.Infof("Listening on %s...", port)
108108

109-
return s.httpServer.GoListenAndServe(":"+port, http.HandlerFunc(s.handleHTTP))
109+
return s.httpServer.GoListenAndServe(host+":"+port, http.HandlerFunc(s.handleHTTP))
110110
}
111111

112112
func (s *Server) Wait() error {

0 commit comments

Comments
 (0)