Skip to content

Commit 1e67ac0

Browse files
committed
usage
1 parent 6a35963 commit 1e67ac0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cdn2proxy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ var Logger = log.New(os.Stderr, "cdn2proxy: ", log.Ldate|log.Ltime|log.Lmicrosec
3232
// StartServer start websocket server
3333
// port: listen on 127.0.0.1:port
3434
// destAddr: send everything here, we only want a single purpose proxy
35+
// wspath: access this path to reach ws service, eg. /ws
36+
// if you use go-cdn2proxy along with other HTTP server, prevent multiple `/`
3537
func StartServer(port, destAddr, wspath string, logOutput io.Writer) (err error) {
3638
// set DestAddr
3739
DestAddr = destAddr

0 commit comments

Comments
 (0)