Chris Lu
0703308270
remote address parsing should handle special cases (#7101)
* remote address parsing should handle special cases
* handling ipv6
* simplify
* Update weed/security/guard.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/security/guard.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* x-real-ip
* Update guard.go
* fixes
Hostname Whitelisting: Fully restored - supports localhost, example.com, etc.
IP Whitelisting: Still works - supports exact IPs and CIDR ranges
Header Support: Consistent handling of X-Forwarded-For, X-Real-IP
* simplify
* Update weed/security/guard.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update weed/security/guard.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update guard.go
* adjust function signature
* Update weed/security/guard.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* indention
* skip empty host
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-08-06 01:03:00 -07:00
..
2025-08-03 01:35:38 -07:00
2025-07-19 23:56:17 -07:00
2025-08-03 11:56:04 -07:00
2025-08-03 11:56:04 -07:00
2025-08-04 23:22:11 -07:00
2025-07-11 10:19:27 -07:00
2025-07-16 23:39:27 -07:00
2025-07-16 23:39:27 -07:00
2024-04-24 23:16:04 -07:00
2025-07-16 23:39:27 -07:00
2025-07-16 23:39:27 -07:00
2025-08-02 08:21:57 -07:00
2025-07-16 23:39:27 -07:00
2025-08-03 01:35:38 -07:00
2022-07-29 00:17:28 -07:00
2025-07-16 23:39:27 -07:00
2025-07-16 23:39:27 -07:00
2025-08-05 22:54:54 -07:00
2025-08-06 01:03:00 -07:00
2024-06-25 09:18:11 -07:00
2025-08-06 01:03:00 -07:00
2025-07-16 23:39:27 -07:00
2025-08-03 23:10:28 -07:00
2024-02-14 08:26:38 -08:00
2025-07-02 18:03:49 -07:00
2025-08-02 02:16:49 -07:00
2025-07-16 23:39:27 -07:00
2025-08-02 02:16:49 -07:00
2025-08-04 23:22:11 -07:00
2025-07-16 23:39:27 -07:00
2025-08-03 01:35:38 -07:00
2025-07-19 21:43:34 -07:00
2025-03-17 23:13:27 -07:00