From 6a5329235d9c2bcd0d896625dd454782a61ffa2e Mon Sep 17 00:00:00 2001 From: Jack Thomasson Date: Sat, 16 Nov 2019 10:20:22 -0700 Subject: [PATCH] sentinel uses configured Dialer such as https://godoc.org/golang.org/x/net/proxy#PerHost --- sentinel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sentinel.go b/sentinel.go index d40ceaf7..c10a26c7 100644 --- a/sentinel.go +++ b/sentinel.go @@ -372,7 +372,8 @@ func (c *sentinelFailover) masterAddr() (string, error) { for i, sentinelAddr := range c.sentinelAddrs { sentinel := NewSentinelClient(&Options{ - Addr: sentinelAddr, + Addr: sentinelAddr, + Dialer: c.opt.Dialer, Password: c.password,