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

PF_INET or PF_INET6 for AF_INET6? #23

Open
ArneBab opened this issue Sep 7, 2018 · 1 comment
Open

PF_INET or PF_INET6 for AF_INET6? #23

ArneBab opened this issue Sep 7, 2018 · 1 comment

Comments

@ArneBab
Copy link

ArneBab commented Sep 7, 2018

When trying to use (run-server server-file-download-handler #:family AF_INET6 #:addr 1 #:port 8083) I get the error

ERROR: In procedure bind: Address family not supported by protocol

Is this due to creating the socket always with PF_INET instead of switching to PF_INET6 for AF_INET6?

(let ((sock (socket PF_INET SOCK_STREAM 0)))

@emixa-d
Copy link
Collaborator

emixa-d commented Jul 23, 2022

I'd guess so! I guess the first argument of socket should be the first argument of make-default-socket, feel free to send a patch if you can confirm changing it works for you.

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