Skip to content

Commit 7777395

Browse files
author
alvin.zzl
committed
change to dial dual stack to support both ipv4 and ipv6
1 parent b20726f commit 7777395

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ func NewAliMNSClient(inputUrl, accessKeyId, accessKeySecret string) MNSClient {
108108

109109
// 2. now init http client
110110
cli.initFastHttpClient()
111+
//change to dial dual stack to support both ipv4 and ipv6
112+
cli.client.DialDualStack = true
111113

112114
return cli
113115
}

0 commit comments

Comments
 (0)