Skip to content

Failed to listen on IPv6 #1

@leesei

Description

@leesei

It may be on me, but I failed to use oidc-cli because it tries to bind IPv6 address.

$ oidc-cli create public keycloak_pub --issuer http://192.168.1.9:8080/realms/my-realm --client-id my-app
10:19:43 [ERROR] Address not available (os error 99)

I can use it after changing this line:

-       let addr = SocketAddr::new(Ipv6Addr::LOCALHOST.into(), port);
+       let addr = SocketAddr::new(Ipv4Addr::LOCALHOST.into(), port);

It is sad to see that IPv6 still have such paper cuts nowadays. I've enabled IPv6 at least 😝.
Is there any particular reason for using IPv6?
BTW, I'm using Arch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions