Date: Sat, 18 Nov 2023 11:26:50 -0000 (UTC)
From: [email protected] (Michael van Elst)
Message-ID: <[email protected]>
| [email protected] (Robert Elz) writes:
|
| >That looks to me as if it should work, and is a lot cleaner, though
| >I doubt there's a great need to remove the [] if they were given.
|
| getaddrinfo() doesn't strip or handle brackets.
As I said before, I haven't looked at all at how the saved address string
is handled after that routine returns it - I assumed that something else
must be processing those (and probably in a way that allowed your 'x'
workaround to work) - but if not, by all means, remove them there, I don't
see any harm in doing that, as the user isn't being required to give them.
kre