Skip to content

Commit

Permalink
Attempt to connect to both ipv4 and ipv6 addresses (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Jun 20, 2023
1 parent 7700cae commit 8aa9d5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jsonrpc/transport/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ type HTTP struct {

func newHTTP(addr string, headers map[string]string) *HTTP {
return &HTTP{
addr: addr,
client: &fasthttp.Client{},
addr: addr,
client: &fasthttp.Client{
DialDualStack: true,
},
headers: headers,
}
}
Expand Down

0 comments on commit 8aa9d5b

Please sign in to comment.