xjasonlyu/tun2socks

View on GitHub
restapi/connections.go

Summary

Maintainability
A
40 mins
Test Coverage

Function getConnections has 6 return statements (exceeds 4 allowed).
Open

func getConnections(w http.ResponseWriter, r *http.Request) {
    if !websocket.IsWebSocketUpgrade(r) {
        render.JSON(w, r, statistic.DefaultManager.Snapshot())
        return
    }
Severity: Major
Found in restapi/connections.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status