Fix tracker IP with reverse proxy
This commit is contained in:
parent
a11a782f5c
commit
b14e8e461f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue