Fix tracker IP with reverse proxy

This commit is contained in:
Chocobozzz
2021-01-11 15:45:04 +01:00
parent a11a782f5c
commit b14e8e461f

View File

@@ -31,7 +31,7 @@ const trackerServer = new TrackerServer({
let ip: string
if (params.type === 'ws') {
ip = params.socket.ip
ip = params.ip
} else {
ip = params.httpReq.ip
}