mirror of
https://github.com/ginuerzh/gosocks5.git
synced 2024-08-11 17:54:31 +00:00
20 lines
225 B
Go
20 lines
225 B
Go
package gosocks5
|
|
|
|
import (
|
|
//"io"
|
|
"net"
|
|
)
|
|
|
|
type Conn struct {
|
|
net.Conn
|
|
}
|
|
|
|
func Dial(addr string) (*Conn, error) {
|
|
conn, err := net.Dial("tcp", addr)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &Conn{Conn: conn}, nil
|
|
}
|