From fe797df361f96444047833b0560ec4363a5fffda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Tue, 12 Mar 2024 21:58:29 +0100 Subject: [PATCH] Ignore announcedIp if same as ip --- src/MediaService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MediaService.ts b/src/MediaService.ts index 5ce468a..fb8df7c 100644 --- a/src/MediaService.ts +++ b/src/MediaService.ts @@ -113,7 +113,9 @@ export default class MediaService { logger.debug('constructor()'); this.ip = ip; - this.announcedIp = announcedIp; + + if (announcedIp && announcedIp !== ip) this.announcedIp = announcedIp; + this.initialAvailableOutgoingBitrate = initialAvailableOutgoingBitrate; this.maxIncomingBitrate = maxIncomingBitrate; this.maxOutgoingBitrate = maxOutgoingBitrate;