Remove unused code
This commit is contained in:
parent
2e055cf630
commit
ee184768b8
11
cmd/root.go
11
cmd/root.go
|
@ -213,17 +213,6 @@ func rootCmdRun(*cobra.Command, []string) {
|
|||
zap.S().Fatalw("failed to configure HTTP server", zap.Error(err))
|
||||
}
|
||||
}
|
||||
|
||||
// r := &Router{
|
||||
// token: c.AuthenticationToken,
|
||||
// upgrader: websocket.Upgrader{
|
||||
// // Ensure that the websocket request is originating from the Panel itself,
|
||||
// // and not some other location.
|
||||
// CheckOrigin: func(r *http.Request) bool {
|
||||
// return r.Header.Get("Origin") == c.PanelLocation
|
||||
// },
|
||||
// },
|
||||
// }
|
||||
}
|
||||
|
||||
// Execute calls cobra to handle cli commands
|
||||
|
|
Loading…
Reference in New Issue
Block a user