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

support ipv6 by using luasocket #116

Open
jzdwk opened this issue Jan 17, 2022 · 1 comment
Open

support ipv6 by using luasocket #116

jzdwk opened this issue Jan 17, 2022 · 1 comment

Comments

@jzdwk
Copy link

jzdwk commented Jan 17, 2022

@leafo luasocket is compatible with ipv6 by using socket.tcp6(), but pgmoon only uses socket.tcp(). so could it be a future task to improve upper-layer system(such as kong) by adding support for ipv6? more discussions please see

@leafo
Copy link
Owner

leafo commented Mar 17, 2022

Happy to accept a patch. I don't think luasocket has an option to correct the correct tcp socket type for a hostname, so an option to force ipv6 would most likely be necessary.

Alternatively, you can try using the cqueues socket type. It's a more up to date library and may already work as expected.

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