Open ikicha opened 2 weeks ago
Describe the bug ttyd doesn't check client certification when connecting to ip addr instead of domain
To Reproduce Steps to reproduce the behavior:
curl --insecure -vvv https://127.0.0.1:7681
curl --insecure -vvv https://localhost:7681
Expected behavior It should check and verify the client certificate regardless of how a user connects to ttyd.
Additional context Here is https://github.com/warmcat/libwebsockets/pull/3257 which is my PR to fix this bug in libwebsockets. Can we use libwebsockets with patch? or it looks like the recent libwebsocket might include some workaround as well(https://github.com/warmcat/libwebsockets/pull/2902)
the change in libwebsockets has been merged in main.
Describe the bug ttyd doesn't check client certification when connecting to ip addr instead of domain
To Reproduce Steps to reproduce the behavior:
curl --insecure -vvv https://127.0.0.1:7681
succeeds to get response, whilecurl --insecure -vvv https://localhost:7681
fails.Expected behavior It should check and verify the client certificate regardless of how a user connects to ttyd.
Additional context Here is https://github.com/warmcat/libwebsockets/pull/3257 which is my PR to fix this bug in libwebsockets. Can we use libwebsockets with patch? or it looks like the recent libwebsocket might include some workaround as well(https://github.com/warmcat/libwebsockets/pull/2902)