diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-11 15:45:04 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-11 15:45:04 +0100 |
commit | b14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a (patch) | |
tree | 5cec20f87d449dc56c8239b9f829a2096b1e6a98 /server/controllers/tracker.ts | |
parent | a11a782f5c142f88acff8b604224cefeb8417cf1 (diff) | |
download | PeerTube-b14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a.tar.gz PeerTube-b14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a.tar.zst PeerTube-b14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a.zip |
Fix tracker IP with reverse proxy
Diffstat (limited to 'server/controllers/tracker.ts')
-rw-r--r-- | server/controllers/tracker.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts index d09b19cae..42a5d7f9b 100644 --- a/server/controllers/tracker.ts +++ b/server/controllers/tracker.ts | |||
@@ -31,7 +31,7 @@ const trackerServer = new TrackerServer({ | |||
31 | let ip: string | 31 | let ip: string |
32 | 32 | ||
33 | if (params.type === 'ws') { | 33 | if (params.type === 'ws') { |
34 | ip = params.socket.ip | 34 | ip = params.ip |
35 | } else { | 35 | } else { |
36 | ip = params.httpReq.ip | 36 | ip = params.httpReq.ip |
37 | } | 37 | } |