fix(server): prevent obj[2]=undefined if there is no options passed

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
拜瑞 2026-02-12 19:21:02 +08:00 committed by GitHub
parent 6d1f75f229
commit 1df147edab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -238,7 +238,7 @@ async function consturctServer(moduleDefs) {
}
// logger.info('Requested from ip:', ip)
obj[2] = {
...obj[2],
...(obj[2] || {}),
ip,
}
return request(...obj)