Closed yttrian closed 7 months ago
Yeah thats probably from here: https://github.com/dokku/ci-docker-image/blob/master/bin/parse-ssh-host#L12
Honestly I think this should probably be a small python script that uses url.parse
or something instead.
Description of problem
Unlike IPv4 addresses, IPv6 addresses cannot be used.
How reproducible
Very
Steps to Reproduce
GIT_REMOTE_URL=ssh://dokku@1.1.1.1:22/example bin/parse-ssh-host
GIT_REMOTE_URL=ssh://dokku@[2606:4700:4700::1111]:22/example bin/parse-ssh-host
Actual Results
1.1.1.1
[2606
Expected Results
1.1.1.1
[2606:4700:4700::1111]
Environment Information
GitLab CI specifically, but reproducible outside.