mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
fixes ArgumentError when proxy is used (#20420)
* fixes ArgumentError when proxy is used * Update app/lib/request.rb Co-authored-by: Claire <claire.github-309c@sitedethib.com> Co-authored-by: Eugen Rochko <eugen@zeonfederated.com> Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
c4c1bee880
commit
28cda42af5
@ -281,7 +281,7 @@ class Request
|
||||
|
||||
class ProxySocket < Socket
|
||||
class << self
|
||||
def check_private_address(_address)
|
||||
def check_private_address(_address, _host)
|
||||
# Accept connections to private addresses as HTTP proxies will usually
|
||||
# be on local addresses
|
||||
nil
|
||||
|
Loading…
Reference in New Issue
Block a user