mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
Implements SNICallback support for Node.js-compatible TLS servers, addressing issue #17932. Changes: - Add SNICallback field to SSLConfig for parsing JavaScript options - Update TLS Server to accept and validate SNICallback option - Add SNI callback bridge function for µSockets integration - Store SNICallback reference in Listener for later use - Add comprehensive tests for SNICallback functionality The implementation provides the foundation for dynamic SNI certificate selection. The actual µSockets callback integration is prepared but commented out pending signature resolution. Note: This implements the JavaScript API layer. The actual SNI callback invocation will be completed in a follow-up when µSockets signature issues are resolved. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>