Preuße, Hilmar (2023-03-23 23:01:22 +0100) wrote: > On 13.03.2014 16:37, Ivan Vilata i Balaguer wrote: > > > The handling of IPv6 addresses is broken since the ``parse_host_entry()`` > > function in ``psshutil.py`` thinks the colons in it are an indication for a > > port and the last component is taken apart. Enclosing the address in > > brackets > > doesn't work either because the host name resolution includes the brackets > > around the IP address. > > > Upstream released version 2.3.5, which says "Fix IPv6 address as host". > I've put new packages on [1]. Could you check if they solve the issue? > > [1] https://freeshell.de/~hille42/pssh/
Thanks Hilmar, I tested the packages and: 1. A raw IPv6 address raises `ValueError` as it tries to parse the part after the 1st colon as a port. 2. A bracketed IPv6 works just fine. 3. A bracketed IPv6 plus `:PORT_NUMBER` raises `TypeError` in psshlib/task.py:40 as it tries to join the host string to the integer port. So I'd say that the original issue is fixed as per point 2, but using an alternative port will fail as per point 3 (though that wasn't part of the issue). Thanks you very much! -- Ivan Vilata i Balaguer -- https://elvil.net/