fork Dialer by go version to support go < 1.3