Issue #6617 has been updated by mksm (Ricardo Amorim).

File net-http_bind_to_local_ip-tests.patch added

@naruse: tests attached! It seems that local_host cannot be nil when setting local_port in TCPSocket.open.

@madeofcode: I also do not know, just followed the pattern. jballanc may have a point, but i can't see why there would be #defined? checks on ivars.

----------------------------------------
Feature #6617: Net::HTTP: Bind to a specific local IP/port
https://bugs.ruby-lang.org/issues/6617#change-27822

Author: mksm (Ricardo Amorim)
Status: Open
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category: lib
Target version: 2.0.0


Despite having several solutions floating around the net, this feature is currently not present in Net::HTTP. I searched the issues but didn't find any discussion on this. How does the dev team feel about this? Can I submit a patch for revision?


-- 
http://bugs.ruby-lang.org/