feed_us_grabber 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,6 +87,14 @@ class FeedUsGrabberController < ActionController::Base
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
+
if isPermitted == false
|
91
|
+
# Heroku fwd -> X-Forwarded-For
|
92
|
+
@mClientIp = request.env["X-Forwarded-For"]
|
93
|
+
isPermitted = IsClientIpInWhiteList()
|
94
|
+
puts "Trace: Try to use fwd header = #{@mClientIp}"
|
95
|
+
puts "Trace: using fwd header isPermitted = #{isPermitted}"
|
96
|
+
end
|
97
|
+
|
90
98
|
puts "Trace: mClientIp = #{@mClientIp}"
|
91
99
|
puts "Trace: returning is permitted true"
|
92
100
|
# TODO: temp code that always returns true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feed_us_grabber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
segments:
|
126
126
|
- 0
|
127
|
-
hash:
|
127
|
+
hash: 821137537
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|