Skip to content

Commit

Permalink
Unban IP
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Sep 3, 2022
1 parent 0df15e6 commit ac22e65
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions controller/http_api_c.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ var supportedActions = []string{
// It's generally designed to mimic the nano node's RPC API
// Though we do additional processing in the middle for some actions
func (hc *HttpController) HandleAction(w http.ResponseWriter, r *http.Request) {
ipAddress := utils.IPAddress(r)
// This person should not have any privileges at all
if ipAddress == "62.204.108.5" {
render.Status(r, http.StatusForbidden)
render.JSON(w, r, map[string]string{"error": "IP address is banned"})
return
}

// Determine type of message and unMarshal
var baseRequest map[string]interface{}
if err := json.NewDecoder(r.Body).Decode(&baseRequest); err != nil {
Expand Down

0 comments on commit ac22e65

Please sign in to comment.