sentinel uses configured Dialer

such as https://godoc.org/golang.org/x/net/proxy#PerHost
This commit is contained in:
Jack Thomasson 2019-11-16 10:20:22 -07:00
parent 726ddef6f5
commit 6a5329235d
1 changed files with 2 additions and 1 deletions

View File

@ -372,7 +372,8 @@ func (c *sentinelFailover) masterAddr() (string, error) {
for i, sentinelAddr := range c.sentinelAddrs { for i, sentinelAddr := range c.sentinelAddrs {
sentinel := NewSentinelClient(&Options{ sentinel := NewSentinelClient(&Options{
Addr: sentinelAddr, Addr: sentinelAddr,
Dialer: c.opt.Dialer,
Password: c.password, Password: c.password,