diff options
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r-- | ext/http/01_http.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js index f434acd3c..d0aefc0c3 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -657,7 +657,7 @@ async function serve(arg1, arg2) { const listenOpts = { hostname: options.hostname ?? "127.0.0.1", port: options.port ?? 9000, - reuseport: options.reusePort ?? false, + reusePort: options.reusePort ?? false, }; if (options.cert || options.key) { @@ -677,11 +677,13 @@ async function serve(arg1, arg2) { port: listenOpts.port, cert: listenOpts.cert, key: listenOpts.key, + reusePort: listenOpts.reusePort, }); } else { listener = listen({ hostname: listenOpts.hostname, port: listenOpts.port, + reusePort: listenOpts.reusePort, }); } |