fix(server-runtime): disable socket port reuse (#2393)

This commit is contained in:
Neko
2026-08-29 01:13:24 +08:00
committed by GitHub
parent 0616eabd5b
commit 48ee12d184
+1 -2
View File
@@ -4,7 +4,6 @@ import type { AppOptions } from '..'
import { isIP } from 'node:net'
import { networkInterfaces } from 'node:os'
import { platform } from 'node:process'
import { useLogg } from '@guiiai/logg'
import { merge } from '@moeru/std'
@@ -166,7 +165,7 @@ export function createServer(opts?: ServerOptions): Server {
port,
hostname,
tls: options?.tlsConfig || undefined,
reusePort: platform !== 'win32',
reusePort: false,
silent: true,
manual: true,
gracefulShutdown: {