Skip to content

Commit

Permalink
Fix QUIC
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 17, 2024
1 parent c44bbba commit 7d9e679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/executor/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ class NginxExecutor {
node._add('http2', "on");
}
if (httpconf == 3) {
node._add('listen', info.ip ? info.ip + ":443 quic reuseport" : "443 quic reuseport");
node._add('listen', (info.ip6 || '[::]') + ":443 quic reuseport");
node._add('listen', info.ip ? info.ip + ":443 quic" : "443 quic");
node._add('listen', (info.ip6 || '[::]') + ":443 quic");
node._add('http2', "on");
node._add('http3', "on");
node._add('add_header', `Alt-Svc 'h3=":443"; ma=86400'`);
node._add('add_header', `Alt-Svc 'h3=":443"; ma=86400, h3-29=":443"'`);
}
} {
node._add('root', info.root);
Expand Down

0 comments on commit 7d9e679

Please sign in to comment.