```go
if dial := dials[mc.cfg.net]; dial != nil {
        mc.netConn, err = customDial(mc.cfg)
} else {
        nd := net.Dialer{Timeout: mc.cfg.timeout}
        mc.netConn, err = nd.Dial(mc.cfg.net, mc.cfg.addr)
}
```