mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-01 14:18:36 +00:00
acme-tls/1 was stored in the server NextProtos so that TLS-ALPN-01 validation could negotiate it. With no other ALPN configured, the server then only offered acme-tls/1 and rejected every client that sends ALPN with no_application_protocol, and NextProtos() reported it as configured, so protocols that set their default ALPN only on an empty list (hysteria, hysteria2, QUIC, HTTP upgrade, naive, DERP) never did. Negotiate acme-tls/1 only for RFC 8737 validation ClientHellos through GetConfigForClient and leave NextProtos to the inbound. Inline ACME is now a certificate provider like certificate_provider.
16 lines
409 B
Go
16 lines
409 B
Go
//go:build !with_acme
|
|
|
|
package tls
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/sagernet/sing-box/option"
|
|
E "github.com/sagernet/sing/common/exceptions"
|
|
"github.com/sagernet/sing/common/logger"
|
|
)
|
|
|
|
func startACME(ctx context.Context, logger logger.Logger, options option.InboundACMEOptions) (managedCertificateProvider, error) {
|
|
return nil, E.New(`ACME is not included in this build, rebuild with -tags with_acme`)
|
|
}
|