httpreplay: use IPv4 sockets.
Travis has a problem with IPv6 loopback: travis-ci/travis-ci#8711.
@@ -126,7 +126,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("tcp4", fmt.Sprintf(":%d", port))
if err != nil {
return err
}
