Open michaelbeaumont opened 3 weeks ago
This is rather unfortunate :(
So probably we have 2 ways here:
SocketAddr
to support IPv4 with bracketsCC @Abhinandan-Purkait
@tiagolobocastro The approach 1 sounds reasonable to me.
@michaelbeaumont what do you think, does 1 sound viable? Something like this: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d7fc4a7afb0734b6a6a68a56445061c8
I personally would slightly prefer separate arguments I think, just because seeing an IPv4 address inside [ ]
might be confusing and seem like a mistake. I'd be curious how other rust-based projects solve this but I wasn't able to find anything. But of course whatever gets the job done IMO
an IPv4 address inside [ ] might be confusing and seem like a mistake
It's a fair point. Alright, seems like this is the way to go then.
Describe the bug Some components directly embed the Pod IP into strings like:
which results in invalid URIs like
2001::1:10199
which should be[2001::1]:10199
.I don't know of a particularly clever way of solving this, unfortunately IPv4 IPs can't be parsed inside
[]
, maybe the host needs to be passed separately from the port and parsed into IPv4/IPv6.To Reproduce Deploy OpenEBS on a cluster where PodIP is IPv6
Expected behavior These components should work independent of the IP family.
OS info (please complete the following information):