Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit a39c1fa

Browse files
committed
Change QUIC agent port configuration from a range to a value.
QUIC agent always uses the minimal port number configured. So the range actually is not respected.
1 parent 63fee64 commit a39c1fa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/agent/quic/agent.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,4 @@ minport = 0 #default: 0
5252
keystorePath = "./cert/certificate.pfx"
5353

5454
# Port of QUIC agent is going to listen on. Default port for WebTransport is not defined in WebTransport spec. We will update it when it's defined.
55-
minport = 7700 #default: 7700
56-
# maxport = 7799 #default: 7799
55+
port = 7700 #default: 7700

source/agent/quic/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function (rpcClient, selfRpcId, parentRpcId, clusterWorkerIP) {
4343
};
4444

4545
const quicTransportServer =
46-
new QuicTransportServer(addon, global.config.quic.minport);
46+
new QuicTransportServer(addon, global.config.quic.port);
4747
quicTransportServer.start();
4848
quicTransportServer.on('streamadded', (stream) => {
4949
const conn = connections.getConnection(stream.contentSessionId);

0 commit comments

Comments
 (0)