forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,11 +108,10 @@ func (s *websocketsServer) Start() { | |
|
||
go func() { | ||
var err error | ||
/* #nosec G114 -- http functions have no support for timeouts */ | ||
if s.certFile == "" || s.keyFile == "" { | ||
err = http.ListenAndServe(s.wsAddr, ws) | ||
err = http.ListenAndServe(s.wsAddr, ws) // #nosec G114 | ||
Check warning Code scanning / Semgrep OSS Semgrep Finding: go.lang.security.audit.net.use-tls.use-tls Warning
Found an HTTP server without TLS. Use 'http.ListenAndServeTLS' instead. See https://golang.org/pkg/net/http/#ListenAndServeTLS for more information.
|
||
} else { | ||
err = http.ListenAndServeTLS(s.wsAddr, s.certFile, s.keyFile, ws) | ||
err = http.ListenAndServeTLS(s.wsAddr, s.certFile, s.keyFile, ws) // #nosec G114 | ||
} | ||
|
||
if err != nil { | ||
|