mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 10:46:32 +00:00
initial commit from appmail
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module Rack
|
||||
class Request
|
||||
module Helpers
|
||||
def trusted_proxy?(ip)
|
||||
ip =~ /^127\.0\.0\.1$|^localhost$|^unix$$/i
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user