LibreChat/api/server/utils/removePorts.js
Danny Avila e7ca40b5ab
feat: bun api support 🥟 (#1021)
* chore: update bun lockfile

* feat: backend api bun support, jose used in bun runtime

* fix: add missing await for signPayload call
2023-10-07 11:16:06 -04:00

1 line
62 B
JavaScript

module.exports = (req) => req?.ip?.replace(/:\d+[^:]*$/, '');