Skip to content

Commit

Permalink
chore(httpreplay): specify localhost for proxy listener (#7088)
Browse files Browse the repository at this point in the history
closes: #7087
  • Loading branch information
quartzmo committed Nov 22, 2022
1 parent 766516a commit d96cb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpreplay/internal/proxy/record.go
Expand Up @@ -131,7 +131,7 @@ func newProxy(filename string) (*Proxy, error) {
}

func (p *Proxy) start(port int) error {
l, err := net.Listen("tcp", fmt.Sprintf(":%d", port))
l, err := net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", port))
if err != nil {
return err
}
Expand Down

0 comments on commit d96cb02

Please sign in to comment.