Compile with the latest ngtcp2

This commit is contained in:
Tatsuhiro Tsujikawa 2022-02-02 19:19:00 +09:00
parent 32c2557bb7
commit 6430c98e86
2 changed files with 5 additions and 5 deletions

View File

@ -655,7 +655,7 @@ int Client::read_quic() {
auto path = ngtcp2_path{ auto path = ngtcp2_path{
{ {
&local_addr.su.sa, &local_addr.su.sa,
local_addr.len, static_cast<socklen_t>(local_addr.len),
}, },
{ {
&su.sa, &su.sa,

View File

@ -665,11 +665,11 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr,
auto path = ngtcp2_path{ auto path = ngtcp2_path{
{ {
const_cast<sockaddr *>(&local_addr.su.sa), const_cast<sockaddr *>(&local_addr.su.sa),
local_addr.len, static_cast<socklen_t>(local_addr.len),
}, },
{ {
const_cast<sockaddr *>(&remote_addr.su.sa), const_cast<sockaddr *>(&remote_addr.su.sa),
remote_addr.len, static_cast<socklen_t>(remote_addr.len),
}, },
const_cast<UpstreamAddr *>(faddr), const_cast<UpstreamAddr *>(faddr),
}; };
@ -1668,11 +1668,11 @@ int Http3Upstream::on_read(const UpstreamAddr *faddr,
auto path = ngtcp2_path{ auto path = ngtcp2_path{
{ {
const_cast<sockaddr *>(&local_addr.su.sa), const_cast<sockaddr *>(&local_addr.su.sa),
local_addr.len, static_cast<socklen_t>(local_addr.len),
}, },
{ {
const_cast<sockaddr *>(&remote_addr.su.sa), const_cast<sockaddr *>(&remote_addr.su.sa),
remote_addr.len, static_cast<socklen_t>(remote_addr.len),
}, },
const_cast<UpstreamAddr *>(faddr), const_cast<UpstreamAddr *>(faddr),
}; };