mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Split on spaces or commas properly
This commit is contained in:
parent
3c8763669b
commit
246e71840e
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ module Puma
|
||||||
return @peerip if @peerip
|
return @peerip if @peerip
|
||||||
|
|
||||||
if @remote_addr_header
|
if @remote_addr_header
|
||||||
hdr = (@env[@remote_addr_header] || LOCALHOST_ADDR).split(/\s,/).first
|
hdr = (@env[@remote_addr_header] || LOCALHOST_ADDR).split(/[\s,]/).first
|
||||||
@peerip = hdr
|
@peerip = hdr
|
||||||
return hdr
|
return hdr
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue