Logs show ::ffff instead of client IP when listening on IPv6 (--host "::")
#1619
JuliaLblnd
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After upgrading NetBox to 4.5.x, I noticed that the access logs inside the
netboxcontainer no longer show the actual client IP address.Instead of a valid IPv4 or IPv6 address, the log entries look like this:
Only the
:or::ffffprefix appears, without the actual client IP.After changing the Granian
--hostargument from:to:
the correct client IPs started appearing again in the logs.
I later found the
GRANIAN_EXTRA_ARGSenvironment variable (and the related discussion #1614), which makes it possible to override the default host like this:Would it make sense to allow overriding the default
--host "::"via a dedicated environment variable (e.g.NETBOX_GRANIAN_HOST), or at least document this workaround?It might help others who run into the same logging issue.
Would anyone happen to know if there is another way to get correct client IPs in Granian’s access logs without changing the
--hostargument?If there is a recommended configuration or a Granian option I may have missed, I’d be very interested.
Beta Was this translation helpful? Give feedback.
All reactions