From Newsgroup: alt.bbs.synchronet
To: Digital Man
Hey DM,
I've been hitting my webserver using an IPv6 address, and I'm getting a 400 response:
curl -vkI https://"\[2001:8003:4c06:5742:f1d0:3:279:1fd\]"
* Connected to 2001:8003:4c06:5742:f1d0:3:279:1fd (2001:8003:4c06:5742:f1d0:3:279:1fd) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* subject: CN=bbs.leenooks.net
* start date: Aug 13 11:50:52 2020 GMT
* expire date: Nov 11 11:50:52 2020 GMT
* common name: bbs.leenooks.net
* issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US
HEAD / HTTP/1.1
User-Agent: curl/7.29.0
Host: [2001:8003:4c06:5742:f1d0:3:279:1fd]
Accept: */*
< HTTP/1.1 400 Bad Request
HTTP/1.1 400 Bad Request
But if I use a hostname, I get the 200.
I'm thinking the is_legal_hostname() test in webserver.c probably needs to test for '[]' ?
...ëîåï
... Between two evils, I always pick the one I never tried before.
---
þ Synchronet þ Alterant | an SBBS in Docker on Pi!
--- Synchronet 3.18c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California -
telnet://vert.synchro.net
--- Synchronet 3.19c-Linux NewsLink 1.113