fcgiwrap obviously does not support IPv6 although the man page says it does.
# /usr/local/sbin/fcgiwrap -s 'tcp6:[::1]:8999'
Failed to bind: Can't assign requested address
# telnet ::1 8999
telnet: connect to address ::1: Connection refused
telnet: Unable to connect to remote host
# /usr/local/sbin/fcgiwrap -s 'tcp:127.0.0.1:8999'
# telnet 127.0.0.1 8999
Connected to localhost.
Escape character is '^]'.
A commit references this bug:
Date: Sat Mar 28 17:49:37 UTC 2020
New revision: 529749
www/fcgiwrap: fix IPv6 support
Extend existing patch to fix IPv6 support.
The fix zero-out the sockaddr structure before
using it as a sockaddr_in6 structure as explained
by IEEE Std 1003.1.
The patch was upstremed : https://github.com/gnosek/fcgiwrap/pull/51
Reported by: <email@example.com>
Thanks for the report, I did a fix in the
port itself, and committed it.
Feel free to update your version and tests it.
The fix was also upstream to the port maintainer.
Once again, thanks for the report and sorry for the delay.