resolv: add some more characters in IPv6 link local zone id
According to RFC6874, IPv6 link local zone id is:
ZoneID = 1*( unreserved / pct-encoded )
unreserved in RFC3986 is as follow.
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
docker can create such an interface.
$ docker network create --ipv6 --subnet fe80::/64 --opt com.docker.network.bridge.name=ruby_3.0.0-1 ruby $ ruby -rsocket -e 'p Socket.ip_address_list.last' #<Addrinfo: fe80::1%ruby_3.0.0-1>
pct-encoded may be overwork, but adding the all of
sounds reasonable for me. What do you think?
Updated by jeremyevans0 (Jeremy Evans) 7 months ago
- Assignee set to akr (Akira Tanaka)
- Status changed from Open to Assigned
This seems reasonable to me. I chose a more conservative approach in the initial implementation, but we've already had to expand it once for s390, and if adding the rest of the unreserved characters fixes docker, we should do that.
I've submitted a pull request upstream for this: https://github.com/ruby/resolv/pull/2
Updated by jaruga (Jun Aruga) 4 months ago
I just faced this issue where
- is used as string matching with
$ ruby -rsocket -e 'p Socket.ip_address_list' #<Addrinfo: fe80::9856:24ff:fe1b:f759%cni-podman0>