michael-lazar / pygopherd

Multiprotocol Gopher/Web Server [Python 3]
https://michael-lazar.github.io/pygopherd/doc/pygopherd.html
GNU General Public License v2.0
33 stars 8 forks source link

Add IPv6 support to PyGopherd #2

Open rhymeswithmogul opened 2 years ago

rhymeswithmogul commented 2 years ago

This pull request will add dual-stack support to PyGopherd's two TCP servers. The daemon will now listen for both IPv4 and IPv6 connections. I have done limited testing with my Gopher server and found no errors, though I admit I may be the first person in the world to browse Gopher over IPv6!

Many Gopher clients only speak IPv4, so just to make sure, I had to test with Netcat:

echo "" | nc -6 2600:1f18:40f3:9a00::ec2:1 70

which produced a Gopher listing!