fix quic config

This commit is contained in:
anlicheng 2026-05-03 16:42:16 +08:00
parent 145934ff62
commit b61d43fe8e

View File

@ -28,12 +28,12 @@ init() ->
AcceptorCount = proplists:get_value(acceptors, Props, 10),
%%
Path = os:getenv("QUIC_CERT_PATH", code:priv_dir(sdlan)),
Path = os:getenv("QUIC_CERT_PATH"),
LOptions = #{
% QUIC/TLS证书配置
certfile => Path ++ "/quic/" ++ CertFile,
keyfile => Path ++ "/quic/" ++ KeyFile,
certfile => Path ++ "/" ++ CertFile,
keyfile => Path ++ "/" ++ KeyFile,
alpn => Alpn,
peer_bidi_stream_count => 1,
conn_acceptors => AcceptorCount