pgmoon icon indicating copy to clipboard operation
pgmoon copied to clipboard

support ipv6 by using luasocket

Open jzdwk opened this issue 3 years ago • 1 comments

@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

jzdwk avatar Jan 17 '22 09:01 jzdwk

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.

leafo avatar Mar 17 '22 02:03 leafo