chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:27:50 +08:00
commit cc8f841fc5
422 changed files with 70222 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { Socket } from 'socket.io';
export function getSocketIp(socket: Socket) {
return (
(socket.handshake.headers['x-real-ip'] as string) ||
socket.request.connection.remoteAddress ||
''
);
}