Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use ipv6 address as URL #181

Open
lahwaacz opened this issue Aug 21, 2022 · 1 comment
Open

Cannot use ipv6 address as URL #181

lahwaacz opened this issue Aug 21, 2022 · 1 comment

Comments

@lahwaacz
Copy link

lahwaacz commented Aug 21, 2022

Ping works:

$ ping fe80::5017:d7ff:feb8:a43e%ve-local-arwyas
PING fe80::5017:d7ff:feb8:a43e%ve-local-arwyas(fe80::5017:d7ff:feb8:a43e%ve-local-arwyas) 56 data bytes
64 bytes from fe80::5017:d7ff:feb8:a43e%ve-local-arwyas: icmp_seq=1 ttl=64 time=0.050 ms
64 bytes from fe80::5017:d7ff:feb8:a43e%ve-local-arwyas: icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from fe80::5017:d7ff:feb8:a43e%ve-local-arwyas: icmp_seq=3 ttl=64 time=0.044 ms
^C
--- fe80::5017:d7ff:feb8:a43e%ve-local-arwyas ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2043ms
rtt min/avg/max/mdev = 0.037/0.043/0.050/0.005 ms

But oha does not:

$ oha --ipv6 https://fe80::5017:d7ff:feb8:a43e%ve-local-arwyas
error: Invalid value "https://fe80::5017:d7ff:feb8:a43e%ve-local-arwyas" for '<URL>': invalid authority

For more information try --help

It's an address of a systemd-nspawn container.

$ oha --version
oha 0.5.3
@hatoo
Copy link
Owner

hatoo commented Aug 21, 2022

Thanks for the issue!
I think the correct URL for ipv6 would be https://[fe80::5017:d7ff:feb8:a43e]%ve-local-arwyas
But it's not supported yet.
You can run

oha --ipv6 https://[fe80::5017:d7ff:feb8:a43e]%ve-local-arwyas

in #182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants