Closed Bug 1217536 Opened 10 years ago Closed 10 years ago

allow inbound_proxy supports '*'

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: glob, Assigned: dylan)

References

Details

Attachments

(1 file)

update inbound_proxy to support '*' (always honour the x-forward-for header).
Assignee: nobody → dylan
Comment on attachment 8678361 [details] [diff] [review] 1217536_1.patch Review of attachment 8678361 [details] [diff] [review]: ----------------------------------------------------------------- 1. Rename t/remote_ip.t to t/013remote_ip.t 2. Add test case for an ipv6 style proxy and remote ip. 3. Update inbound_proxies description in template/en/default/admin/params/advanced.html.tmpl to account for '*'. Fix on commit. r=dkl ::: Bugzilla/Util.pm @@ +316,5 @@ > + return $remote_ip if none { $_ eq $remote_ip } @proxies; > + > + foreach my $ip (reverse @x_forwarded_for) { > + if (none { $_ eq $ip } @proxies) { > + # Kep the original IP address if the remote IP is invalid. s/Kep/Keep/
Attachment #8678361 - Flags: review?(dkl) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git f521f52..175f9c1 master -> master
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 1284277
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: