1
0
Fork 0
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:
Nate Berkopec 2020-03-11 12:49:29 -06:00
parent 761a093446
commit 5f9e30e6e0
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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