akrabat / ip-address-middleware

PSR-7 Middleware that determines the client IP address and stores it as an ServerRequest attribute
Other
168 stars 38 forks source link

Checks only the first trustedWildcard #31

Closed Seagull-4auKa closed 2 years ago

Seagull-4auKa commented 3 years ago

https://github.com/akrabat/ip-address-middleware/blob/90c38ef95d46c59e12eea236a4d592c03889bbaa/src/IpAddress.php#L195-L206 If first proxy from trustedWildcard does not match, break 2; exits two cycles instead of one. Thus ignoring the rest of the wildcard list

akrabat commented 2 years ago

Thanks @Seagull-4auKa. Fixed in version 2.1.0