Closed sporkmonger closed 7 years ago
I'd rather implement this by using strings.Trim
on each segment rather than reverting to regexp.
Fair enough, I'll update PR.
Done.
/nudge/ @captncraig.. Any chance of getting this change merged in? I issue just occurred for myself.
Currently the plugin splits on commas, but doesn't account for the possibility of whitespace, which is quite common in the
X-Forwarded-For
header. This results in trying to parse an IP address with leading whitespace, which then fails, despite the IP address being valid.