Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Synopsis example does not work in latest version #4

Open
akauste opened this issue Jun 13, 2018 · 1 comment
Open

Synopsis example does not work in latest version #4

akauste opened this issue Jun 13, 2018 · 1 comment

Comments

@akauste
Copy link

akauste commented Jun 13, 2018

enable "Plack::Middleware::XForwardedFor",
trust => [qw(127.0.0.1/8)];

Works as intented in version 0.103060, but not with 0.172050. It is not tested. Tests use value 127.0.0.1 which works, but there are probably many people using the synopsis code which now starts failing when the module is updated.

@akauste
Copy link
Author

akauste commented Jun 13, 2018

Looking further it looks like Net::IP does not like bits set after the mask. 127.0.0.0/8 is ok, but 127.0.0.1/8 is not.

Related bug report against Net::IP: Bug 96778, open since 2014.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant