Skip to content

Commit

Permalink
Merge pull request #8 from aak1247/dev
Browse files Browse the repository at this point in the history
Dev
aak1247 authored Dec 25, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 1e1ac36 + 1a72fec commit a9fa3e1
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ then, a websocket server will run on port 8081 and proxy all ws requests to abc.

### With makefile

``make release``: will generate all linux/windows/osx binary
``make release VERSION=$VERSION``: will generate all linux/windows/osx binary

### Run by command

4 changes: 2 additions & 2 deletions proxy/ws.go
Original file line number Diff line number Diff line change
@@ -13,15 +13,15 @@ func NewWSProxy(url string, localPort int) {
//http.Handle("/proxyWsConn", )
http.HandleFunc("/", wsProxyUrl(url))
if err := http.ListenAndServe(":"+strconv.Itoa(localPort), nil); err != nil {
log.Fatalf("failed to start ws server\n")
log.Fatalf("failed to start ws server %v\n", err)
}
}

func NewWSSProxy(url string, localPort int, cert, key string) {
//http.Handle("/proxyWsConn", )
http.HandleFunc("/", wsProxyUrl(url))
if err := http.ListenAndServeTLS(":"+strconv.Itoa(localPort), cert, key, nil); err != nil {
log.Fatalf("failed to start ws server\n")
log.Fatalf("failed to start ws server %v\n", err)
}
}

0 comments on commit a9fa3e1

Please sign in to comment.