Logged remoteAddr for X-Forwarded-For IPs via UNIX sockets always end with :0
xff appends a :0
if no port is given: https://github.com/sebest/xff/blob/6c115e0ffa35d6a2e3f7a9e797c9cf07f0da4b9f/xff.go#L75
We can either fix that library ourselves or just switch to a module like https://github.com/tomasen/realip that appears to do the right thing.
Edited by Stan Hu