mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Remove LOCALHOST_ADDR. Fix #2175
This commit is contained in:
parent
761a093446
commit
5f9e30e6e0
2 changed files with 1 additions and 2 deletions
|
@ -265,7 +265,7 @@ module Puma
|
|||
return @peerip if @peerip
|
||||
|
||||
if @remote_addr_header
|
||||
hdr = (@env[@remote_addr_header] || LOCALHOST_ADDR).split(/[\s,]/).first
|
||||
hdr = (@env[@remote_addr_header] || LOCALHOST_IP).split(/[\s,]/).first
|
||||
@peerip = hdr
|
||||
return hdr
|
||||
end
|
||||
|
|
|
@ -175,7 +175,6 @@ module Puma
|
|||
PORT_443 = "443".freeze
|
||||
LOCALHOST = "localhost".freeze
|
||||
LOCALHOST_IP = "127.0.0.1".freeze
|
||||
LOCALHOST_ADDR = "127.0.0.1:0".freeze
|
||||
|
||||
SERVER_PROTOCOL = "SERVER_PROTOCOL".freeze
|
||||
HTTP_11 = "HTTP/1.1".freeze
|
||||
|
|
Loading…
Reference in a new issue