Skip to content
New issue

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

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

Already on GitHub? # to your account

Can't seem to disable ipv6 (with tls) #373

Open
abliss opened this issue Jul 7, 2020 · 2 comments
Open

Can't seem to disable ipv6 (with tls) #373

abliss opened this issue Jul 7, 2020 · 2 comments

Comments

@abliss
Copy link

abliss commented Jul 7, 2020

I have set circe-default-ip-family to ipv4, but circe still seems to use ipv6 when connecting (over tls) to e.g. irc.tilde.chat (the connection hangs forever, perhaps because I lack ipv6 connectivity; strace indicates emacs is making ipv6 networking calls).

I notice that https://github.com/jorgenschaefer/circe/blob/e4af7143bd32907d0bf922bee53a96399f0376fa/irc.el#L82 and https://github.com/jorgenschaefer/circe/blob/e4af7143bd32907d0bf922bee53a96399f0376fa/circe.el#L1237 seem to disagree about the plist key; circe.el passes it as :ip-family but irc.el seems to receive it as :family , but I also am not certain that make-tls-process actually supports :family.

@wasamasa
Copy link
Collaborator

wasamasa commented Jul 9, 2020

I doubt make-tls-process supports :family. It shells out to either gnutls-cli (which doesn't have an IPv4/v6 switch) or openssl s_client (which has one, but it's not preferred). There is no code to conditionally add arguments either. Now, it shouldn't hang "forever", just for about a minute to time out and retry with IPv4.

@wasamasa
Copy link
Collaborator

wasamasa commented Sep 28, 2020

This should work now as make-network-process is used with Emacs 26.1 or newer, see #377 for details.

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

No branches or pull requests

2 participants