The errors returned by proxy.SOCKS5() are all created with errors.New, meaning package users have to parse strings to determine what happened. At the minimum, they should satisfy net.Error so users can distinguish between timeouts and temporary errors.
The errors returned by proxy.SOCKS5() are all created with errors.New, meaning package users have to parse strings to determine what happened. At the minimum, they should satisfy net.Error so users can distinguish between timeouts and temporary errors.