aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/headers.go2
-rw-r--r--internal/test/playwright_test.go5
2 files changed, 3 insertions, 4 deletions
diff --git a/internal/headers.go b/internal/headers.go
index d73fa33..a48ce54 100644
--- a/internal/headers.go
+++ b/internal/headers.go
@@ -26,7 +26,7 @@ func UnchangingCache(next http.Handler) http.Handler {
// RemoteXRealIP sets the X-Real-Ip header to the request's real IP if
// the setting is enabled by the user.
func RemoteXRealIP(useRemoteAddress bool, bindNetwork string, next http.Handler) http.Handler {
- if useRemoteAddress == false {
+ if !useRemoteAddress {
slog.Debug("skipping middleware, useRemoteAddress is empty")
return next
}
diff --git a/internal/test/playwright_test.go b/internal/test/playwright_test.go
index 8a0d501..d81b86a 100644
--- a/internal/test/playwright_test.go
+++ b/internal/test/playwright_test.go
@@ -30,9 +30,8 @@ import (
)
var (
- serverBindAddr = flag.String("bind", "localhost:3923", "test server bind address")
- playwrightPort = flag.Int("playwright-port", 3000, "Playwright port")
- playwrightServer = flag.String("playwright", "ws://localhost:3000", "Playwright server URL")
+ playwrightPort = flag.Int("playwright-port", 9001, "Playwright port")
+ playwrightServer = flag.String("playwright", "ws://localhost:9001", "Playwright server URL")
playwrightMaxTime = flag.Duration("playwright-max-time", 5*time.Second, "maximum time for Playwright requests")
playwrightMaxHardTime = flag.Duration("playwright-max-hard-time", 5*time.Minute, "maximum time for hard Playwright requests")