Skip to content

Commit

Permalink
chore: error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
aak1247 committed Dec 25, 2023
1 parent 2f352eb commit a530b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit a530b93

Please sign in to comment.