Skip to content

Commit

Permalink
usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Dec 24, 2021
1 parent 6a35963 commit 1e67ac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdn2proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ var Logger = log.New(os.Stderr, "cdn2proxy: ", log.Ldate|log.Ltime|log.Lmicrosec
// StartServer start websocket server
// port: listen on 127.0.0.1:port
// destAddr: send everything here, we only want a single purpose proxy
// wspath: access this path to reach ws service, eg. /ws
// if you use go-cdn2proxy along with other HTTP server, prevent multiple `/`
func StartServer(port, destAddr, wspath string, logOutput io.Writer) (err error) {
// set DestAddr
DestAddr = destAddr
Expand Down

0 comments on commit 1e67ac0

Please sign in to comment.