Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Rack
- class Request
- def ip
- @ip ||= (@env['HTTP_CF_CONNECTING_IP'] || super)
- end
- end
- end
- module Rack
- class Request
- class << self
- def ip
- @ip ||= (@env['HTTP_CF_CONNECTING_IP'] || super)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement