Pass listen port along to h3

This commit is contained in:
Alex Hultman
2022-10-11 09:11:09 +02:00
parent e64069966a
commit 48b83ec9ff
2 changed files with 6 additions and 10 deletions
+2 -2
View File
@@ -107,9 +107,9 @@ namespace uWS {
// call init here after setting the ext to Http3ContextData
}
us_quic_listen_socket_t *listen() {
us_quic_listen_socket_t *listen(int port) {
/* The listening socket is the actual UDP socket used */
us_quic_listen_socket_t *listen_socket = us_quic_socket_context_listen((us_quic_socket_context_t *) this, "::", 9004, sizeof(Http3ResponseData));
us_quic_listen_socket_t *listen_socket = us_quic_socket_context_listen((us_quic_socket_context_t *) this, "::", port, sizeof(Http3ResponseData));
//printf("Listen socket is: %p\n", listen_socket);