Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Dec 18, 2020
1 parent 9857d97 commit a38c055
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,64 @@
# go-cdn2proxy
proxy your traffic through CDN using websocket

<!-- vim-markdown-toc GFM -->

* [what does it do](#what-does-it-do)
* [example](#example)
* [server](#server)
* [client](#client)
* [thanks](#thanks)

<!-- vim-markdown-toc -->

## what does it do

- you can use this as a library in your project: `go get -v -u github.com/jm33-m0/go-cdn2proxy`
- simply put, go-cdn2proxy forwards your traffic through websocket, which can be implemented behind most CDNs
- anything that supports socks5 proxy can use go-cdn2proxy

for me, i wrote this for [emp3r0r](https://github.com/jm33-m0/emp3r0r)

## example

### server

```go
package main

import (
"log"

"github.com/jm33-m0/go-cdn2proxy"
)

func main() {
err := cdn2proxy.StartServer("9000", "127.0.0.1:8000")
if err != nil {
log.Fatal(err)
}
}
```

### client

```go
package main

import (
"log"

"github.com/jm33-m0/go-cdn2proxy"
)

func main() {
err := cdn2proxy.StartProxy("127.0.0.1:10888", "wss://10.10.10.1")
if err != nil {
log.Fatal(err)
}
}
```

## thanks

- [Minimal socks5 proxy implementation in Golang](https://gist.github.com/felix021/7f9d05fa1fd9f8f62cbce9edbdb19253)

0 comments on commit a38c055

Please sign in to comment.