File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,14 @@ func NewServer(config *Config) (*Server, error) {
89
89
return s , nil
90
90
}
91
91
92
- func (s * Server ) Run (host , port string ) error {
92
+ func (s * Server ) Run (host string , port string ) error {
93
93
if err := s .Start (host , port ); err != nil {
94
94
return err
95
95
}
96
96
return s .Wait ()
97
97
}
98
98
99
- func (s * Server ) Start (host , port string ) error {
99
+ func (s * Server ) Start (host string , port string ) error {
100
100
s .Infof ("Fingerprint %s" , s .fingerprint )
101
101
if len (s .Users ) > 0 {
102
102
s .Infof ("User authenication enabled" )
@@ -106,7 +106,7 @@ func (s *Server) Start(host, port string) error {
106
106
}
107
107
s .Infof ("Listening on %s..." , port )
108
108
109
- return s .httpServer .GoListenAndServe (":" + port , http .HandlerFunc (s .handleHTTP ))
109
+ return s .httpServer .GoListenAndServe (host + ":" + port , http .HandlerFunc (s .handleHTTP ))
110
110
}
111
111
112
112
func (s * Server ) Wait () error {
You can’t perform that action at this time.
0 commit comments