Promised socks4 and a panic on a custom dialer
The README and the Proxy() comment promised socks4 and socks4a, but golang.org/x/net/proxy only resolves socks5 and socks5h, so other schemes failed with "proxy: unknown scheme". A dialer added with proxy.RegisterDialerType without a DialContext method panicked on a type assertion.
Accurate docs and a Dial with a timeout
The docs now list socks5 and socks5h and point to RegisterDialerType for other schemes. A dialer without DialContext connects through Dial in a separate goroutine, and when the timeout runs out the attempt is abandoned and the connection closed, which new tests check.