mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-28 19:11:28 +08:00
fix: use localhost instead of 127.0.0.1
This commit is contained in:
@@ -86,7 +86,7 @@ func (r *Router) Init() {
|
||||
}
|
||||
|
||||
func (r *Router) Run(port int) error {
|
||||
err := r.Engine.Run(fmt.Sprintf("127.0.0.1:%d", port))
|
||||
err := r.Engine.Run(fmt.Sprintf("localhost:%d", port))
|
||||
if err != nil {
|
||||
log.Err(err).Msg("failed to start http server")
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user