Skip to content

Commit

Permalink
chore: update testify
Browse files Browse the repository at this point in the history
remove client implement
  • Loading branch information
thinkgos committed Jul 10, 2021
1 parent ea31594 commit ed89475
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 613 deletions.
33 changes: 2 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ an intermediate proxy layer. This can be used to bypass firewalls or NATs.


The package has the following features:
- Support client(**under ccsocks5 directory**) and server(**under root directory**)
- Support socks5 server
- Support TCP/UDP and IPv4/IPv6
- Unit tests
- "No Auth" mode
Expand Down Expand Up @@ -48,19 +48,11 @@ Then import the socks5 server package into your own code.
import "github.com/things-go/go-socks5"
```

or

import the socks5 client package into your own code.

```bash
import "github.com/things-go/go-socks5/ccsocks5"
```

### Example

Below is a simple example of usage, more see [example](https://github.com/things-go/go-socks5/tree/master/_example)

[embedmd]:# (_example/server/main.go go)
[embedmd]:# (_example/main.go go)
```go
package main

Expand All @@ -84,27 +76,6 @@ func main() {
}
```

[embedmd]:# (_example/client/main.go go)
```go
package main

import (
"time"

"github.com/things-go/go-socks5/ccsocks5"
)

func main() {
client := ccsocks5.NewClient("127.0.0.1:10800")
conn, err := client.Dial("tcp", "127.0.0.1:12345") // server you want to visitor
if err != nil {
panic(err)
}
conn.Write([]byte("hahaha"))
time.Sleep(time.Second)
}
```

### Reference
- [rfc1928](https://www.ietf.org/rfc/rfc1928.txt)
- original armon [go-sock5](https://github.com/armon/go-socks5)
17 changes: 0 additions & 17 deletions _example/client/main.go

This file was deleted.

File renamed without changes.
70 changes: 0 additions & 70 deletions _example/testassociate/main.go

This file was deleted.

69 changes: 0 additions & 69 deletions _example/testconnect/main.go

This file was deleted.

74 changes: 0 additions & 74 deletions ccsocks5/Connect.go

This file was deleted.

63 changes: 0 additions & 63 deletions ccsocks5/associate.go

This file was deleted.

Loading

0 comments on commit ed89475

Please sign in to comment.