Skip to content

Commit

Permalink
Ignore announcedIp if same as ip
Browse files Browse the repository at this point in the history
  • Loading branch information
havfo committed Mar 12, 2024
1 parent 9648dfd commit fe797df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MediaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe797df

Please sign in to comment.