#149 new
johannes

REMOTE_ADDR is broken on ipv6

Reported by johannes | January 9th, 2012 @ 06:10 AM

REMOTE_ADDR is broken on ipv6.

If I start the following app:

run (lambda do |env|
    [200, { "Content-Type" => "text/plain" }, env["REMOTE_ADDR"].inspect]
end)

with rackup -s thin -o :: ip.ru.

For my ipv6 address "fda6:3047:26f5:9815::15" instead is displayed "fda6:3047:26f5:9815::%60689".
For my ipv4 address "::ffff:192.168.43.15" instead is displayed "::%21313".

This was tested with 1.2.11 Bat-Shit Crazy.

Comments and changes to this ticket

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages