]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix tracker IP with reverse proxy
authorChocobozzz <me@florianbigard.com>
Mon, 11 Jan 2021 14:45:04 +0000 (15:45 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 11 Jan 2021 14:45:04 +0000 (15:45 +0100)
server/controllers/tracker.ts

index d09b19cae872687366ca8d80b9d39aaf05b72f98..42a5d7f9b8f2af924c92aab515404d0d3a60efaa 100644 (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
     }