Handle preferred address
This commit is contained in:
parent
05a6ee2b49
commit
c3eb7e1634
|
@ -400,6 +400,13 @@ void generate_cid(ngtcp2_cid &dest) {
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
int select_preferred_addr(ngtcp2_conn *conn, ngtcp2_addr *dest,
|
||||||
|
const ngtcp2_preferred_addr *paddr, void *user_data) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
} // namespace
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
ngtcp2_tstamp timestamp(struct ev_loop *loop) {
|
ngtcp2_tstamp timestamp(struct ev_loop *loop) {
|
||||||
return ev_now(loop) * NGTCP2_SECONDS;
|
return ev_now(loop) * NGTCP2_SECONDS;
|
||||||
|
@ -575,7 +582,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
|
||||||
nullptr, // remove_connection_id
|
nullptr, // remove_connection_id
|
||||||
nullptr, // update_key
|
nullptr, // update_key
|
||||||
nullptr, // path_validation
|
nullptr, // path_validation
|
||||||
nullptr, // select_preferred_address
|
select_preferred_addr,
|
||||||
h2load::stream_reset,
|
h2load::stream_reset,
|
||||||
nullptr, // extend_max_remote_streams_bidi
|
nullptr, // extend_max_remote_streams_bidi
|
||||||
nullptr, // extend_max_remote_streams_uni
|
nullptr, // extend_max_remote_streams_uni
|
||||||
|
|
Loading…
Reference in New Issue