Remove Go1.6 support (#1492)

This commit is contained in:
dfawley
2017-10-04 13:57:10 -07:00
committed by GitHub
parent dc413bbc22
commit c8405557a4
18 changed files with 75 additions and 413 deletions

View File

@ -378,7 +378,7 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *
if cc.dopts.copts.Dialer == nil {
cc.dopts.copts.Dialer = newProxyDialer(
func(ctx context.Context, addr string) (net.Conn, error) {
return dialContext(ctx, "tcp", addr)
return (&net.Dialer{}).DialContext(ctx, "tcp", addr)
},
)
}