fix quic config
This commit is contained in:
parent
145934ff62
commit
b61d43fe8e
@ -28,12 +28,12 @@ init() ->
|
|||||||
AcceptorCount = proplists:get_value(acceptors, Props, 10),
|
AcceptorCount = proplists:get_value(acceptors, Props, 10),
|
||||||
|
|
||||||
%% 获取环境变量
|
%% 获取环境变量
|
||||||
Path = os:getenv("QUIC_CERT_PATH", code:priv_dir(sdlan)),
|
Path = os:getenv("QUIC_CERT_PATH"),
|
||||||
|
|
||||||
LOptions = #{
|
LOptions = #{
|
||||||
% 必选:QUIC/TLS证书配置
|
% 必选:QUIC/TLS证书配置
|
||||||
certfile => Path ++ "/quic/" ++ CertFile,
|
certfile => Path ++ "/" ++ CertFile,
|
||||||
keyfile => Path ++ "/quic/" ++ KeyFile,
|
keyfile => Path ++ "/" ++ KeyFile,
|
||||||
alpn => Alpn,
|
alpn => Alpn,
|
||||||
peer_bidi_stream_count => 1,
|
peer_bidi_stream_count => 1,
|
||||||
conn_acceptors => AcceptorCount
|
conn_acceptors => AcceptorCount
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user