Clarify listen address

This commit is contained in:
Jakob Borg 2015-10-13 22:07:22 +09:00
parent 953a67bc3a
commit 7c79985a29

View File

@ -125,8 +125,6 @@ func (s *apiSvc) getListener(guiCfg config.GUIConfiguration) (net.Listener, erro
return nil, err
}
l.Infoln("Starting web GUI on", guiCfg.URL())
listener := &tlsutil.DowngradingListener{rawListener, tlsCfg}
return listener, nil
}
@ -229,6 +227,7 @@ func (s *apiSvc) Serve() {
s.fss.ServeBackground()
l.Infoln("API listening on", s.listener.Addr())
l.Infoln("GUI URL is", guiCfg.URL())
err := srv.Serve(s.listener)
// The return could be due to an intentional close. Wait for the stop