Skip to content

Commit b251b9d

Browse files
authored
Merge pull request #3 from alvingreat/master
change to dial dual stack to support both ipv4 and ipv6
2 parents 088ba95 + 7777395 commit b251b9d

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
@@ -112,6 +112,8 @@ func NewAliMNSClientWithToken(inputUrl, accessKeyId, accessKeySecret, token stri
112112

113113
// 2. now init http client
114114
cli.initFastHttpClient()
115+
//change to dial dual stack to support both ipv4 and ipv6
116+
cli.client.DialDualStack = true
115117

116118
return cli
117119
}

0 commit comments

Comments
 (0)