Destination hostname as an ipv6 address for sftp (ssh) broken in ngax

Hi,

I’m using 2.1.0.116_canary_2025-04-17 on linux (Mint).
I’m using the gui with the ngax client.

On a working backup, I replaced the dns name to my destination by an ipv6 address [XXXX:…:YYYY].
The backup was working ok with the ipv6 address, but the next time I tried editing it, the destination URL was broken, only displaying the “[XXXX” part for the destination, and missing the rest of the config: port, path, username, advanced options, etc.
Something similar to that old problem from 2017 Using IPv6 for SFTP (SSH) - #6 by ropeguru

Importing a backup of the configuration with the ipv6 address from file also has the problem.

I’ve managed to fix my configuration and went back to a dns name, but I’m not sure if I need to open a github issue.

Trying to understand the problem, I thought maybe the problem was with the regex parsing the URL but it’s correctly extracting the hostname as an ipv6 address.
Doing more tests using a backup with an ipv6 address as the destination the hostname is broken in ngax but working in ngclient.

If needed, I can try to create an example backup configuration backup reproducing the problem.

Best regards.

If you can create a Github issue that would be much appreciated.
If you can add an example export file to load in that makes it much faster to debug and resolve.

Seeing that it cuts after the :, I think it has something to do with parsing the rest as the port perhaps. But nice that it works in ngclient.