support IPv6

This commit is contained in:
Chris Lu
2021-03-02 20:59:39 -08:00
parent bcf32591b7
commit e982b06bcd
7 changed files with 28 additions and 42 deletions

View File

@@ -18,6 +18,7 @@ var (
WriteTimeout: time.Second,
MaxIdleConnDuration: time.Minute,
DisableHeaderNamesNormalizing: true, // If you set the case on your headers correctly you can enable this.
DialDualStack: true,
}
// Put everything in pools to prevent garbage.