Skip to content

Commit d96cb02

Browse files
authored
chore(httpreplay): specify localhost for proxy listener (#7088)
closes: #7087
1 parent 766516a commit d96cb02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

β€Žhttpreplay/internal/proxy/record.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func newProxy(filename string) (*Proxy, error) {
131131
}
132132

133133
func (p *Proxy) start(port int) error {
134-
l, err := net.Listen("tcp", fmt.Sprintf(":%d", port))
134+
l, err := net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", port))
135135
if err != nil {
136136
return err
137137
}

0 commit comments

Comments
 (0)