aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-11 15:45:04 +0100
committerChocobozzz <me@florianbigard.com>2021-01-11 15:45:04 +0100
commitb14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a (patch)
tree5cec20f87d449dc56c8239b9f829a2096b1e6a98
parenta11a782f5c142f88acff8b604224cefeb8417cf1 (diff)
downloadPeerTube-b14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a.tar.gz
PeerTube-b14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a.tar.zst
PeerTube-b14e8e461f8f751e3d5927a20c7eb63b9ffa7a6a.zip
Fix tracker IP with reverse proxy
-rw-r--r--server/controllers/tracker.ts2
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 }