minor changes
add some comments fix some wrong format change the method of forward finish checkmaster
parent
811a67f289
commit
8a138fb3db
@ -1,3 +1,4 @@
|
||||
*.exe
|
||||
*~
|
||||
*bak
|
||||
*.swp
|
||||
|
@ -1,20 +1,20 @@
|
||||
socks-go
|
||||
=======
|
||||
|
||||
A socks server implement by golang, support socks4/4a, socks5.
|
||||
A socks server implemented by golang, support socks4/4a, socks5.
|
||||
|
||||
|
||||
usage
|
||||
====
|
||||
Usage example:
|
||||
|
||||
import "github.com/fangdingjun/socks"
|
||||
import socks "github.com/fangdingjun/socks-go"
|
||||
|
||||
fucn main(){
|
||||
func main(){
|
||||
l, _ := net.Listen("tcp", ":1080")
|
||||
for {
|
||||
conn, _ := l.Accept()
|
||||
s := socks.SocksConn{conn}
|
||||
go s.Serve()
|
||||
s := socks.SocksConn{ClientConn: conn, Dial: nil} // Dial is a function which dial to the upstream server
|
||||
go s.Serve() // serve the socks request
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
server
|
Loading…
Reference in New Issue