fix quic config
This commit is contained in:
parent
145934ff62
commit
b61d43fe8e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user