Skip to content

Commit

Permalink
fix: 🚨 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienyhuel committed Dec 19, 2024
1 parent 2fe46bc commit 2badad2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
package coraza

import (
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
"math/rand"
"net"
"net/http"
"strconv"
"strings"
"sync"
"time"

"github.com/caddyserver/caddy/v2/modules/caddyhttp"
)

const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
Expand Down Expand Up @@ -71,8 +72,8 @@ func getClientAddress(req *http.Request) (string, int) {
clientIp = req.RemoteAddr[:idx]
clientPort, _ = strconv.Atoi(req.RemoteAddr[idx+1:])
} else {
clientIp = req.RemoteAddr
clientPort = 0
clientIp = req.RemoteAddr
clientPort = 0
}
}

Expand Down

0 comments on commit 2badad2

Please sign in to comment.