This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
@@ -48,6 +48,21 @@ const (
// Put a sanity timeout on how long we wait for a SOCKS request.
constsocksRequestTimeout=5*time.Second
// socksError wraps connection errors in a temporary net.Error interface.
typesocksErrorstring
func (esocksError) Error() string {
returnstring(e)
}
func (esocksError) Timeout() bool {
returnfalse
}
func (esocksError) Temporary() bool {
returntrue
}
// SocksRequest describes a SOCKS request.
typeSocksRequeststruct {
// The endpoint requested by the client as a "host:port" string.