Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 support in in/out_forward #75

Closed
repeatedly opened this issue Nov 8, 2012 · 1 comment
Closed

IPv6 support in in/out_forward #75

repeatedly opened this issue Nov 8, 2012 · 1 comment

Comments

@repeatedly
Copy link
Member

Currently, in_forward always create a IPv4 UDPSocket.
In this result, socket bind always failed with IPv6 host, e.g. ::1.

When bind parameter is IPv6, in_forward should create a UDPSocket with Socket::AF_INET6.

def start
  # ...
  if ipv4?
    @usock = UDPSocket.new
  else
    @usock = UDPSocket.new(Socket::AF_INET6)
  end
  #...
end
@kzk
Copy link
Member

kzk commented Nov 30, 2012

dup of #72.

@kzk kzk closed this as completed Nov 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants