Skip to content

Commit 2105d79

Browse files
committed
nilaway: ipn/auto.go
1 parent c38b027 commit 2105d79

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

intra/ipn/auto.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ func (h *auto) dial(network, laddr, raddr string) (protect.Conn, error) {
160160
if len(healthy) <= 0 {
161161
// no healthy proxies; fail open
162162
all := core.Map(rpns, func(p Proxy) protect.RDialer {
163+
if p == nil || core.IsNil(p) {
164+
return nil // nil proxies out
165+
}
163166
return p.Dialer()
164167
})
165168
return dialAny(core.WithoutNils(all), network, laddr, raddr)

0 commit comments

Comments
 (0)