From fbd977d261ddcd3a2c73ad734b88054c033ec721 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Wed, 19 Aug 2026 12:13:29 -0400 Subject: [PATCH 1/2] update pangolin links in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88e7d55..129310a 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Pangolin Middleware: Badger -Badger is a middleware plugin designed to work with Traefik in conjunction with [Pangolin](https://github.com/fosrl/pangolin), an identity-aware reverse proxy and zero-trust VPN. Badger acts as an authentication bouncer, ensuring only authenticated and authorized requests are allowed through the proxy. +Badger is a middleware plugin designed to work with Traefik in conjunction with [Pangolin](https://pangolin.net/github), an identity-aware reverse proxy and zero-trust VPN. Badger acts as an authentication bouncer, ensuring only authenticated and authorized requests are allowed through the proxy. > [!NOTE] > Badger can also be used standalone for IP handling (Cloudflare and custom proxy support) without Pangolin. Simply set `disableForwardAuth: true` in your configuration. See the [Disabling Forward Auth](#disabling-forward-auth) section below for details. -This plugin is **required** to be installed alongside [Pangolin](https://github.com/fosrl/pangolin) to enforce secure authentication and session management. +This plugin is **required** to be installed alongside [Pangolin](https://pangolin.net/github) to enforce secure authentication and session management. ## Installation From 506286ddfda7a037c541b0089491a91da2fbcdb5 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Mon, 24 Aug 2026 09:18:51 -0400 Subject: [PATCH 2/2] make change --- ips/ips.go | 2 ++ main.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ips/ips.go b/ips/ips.go index 9aa4f5d..b26e411 100644 --- a/ips/ips.go +++ b/ips/ips.go @@ -1,5 +1,7 @@ +// Package ips contains a list of current cloud flare IP ranges package ips +// CFIPs is the CloudFlare Server IP list (this is checked on build). func CFIPs() []string { return []string{ "173.245.48.0/20", diff --git a/main.go b/main.go index 565da86..f40594a 100644 --- a/main.go +++ b/main.go @@ -70,10 +70,10 @@ type Badger struct { } func stringOrDefault(value, def string) string { - if value == "" { - return def + if value != "" { + return value } - return value + return def } type VerifyBody struct {