Commit 6430c98e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Compile with the latest ngtcp2

parent 32c2557b
...@@ -655,7 +655,7 @@ int Client::read_quic() { ...@@ -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,
......
...@@ -665,11 +665,11 @@ int Http3Upstream::init(const UpstreamAddr *faddr, const Address &remote_addr, ...@@ -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, ...@@ -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),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment