necrommunity / condor-web-services

Files and configs for CoNDOR's web services.
0 stars 0 forks source link

Stat page raw XML shows viewer IPs #1

Open MacND opened 7 years ago

MacND commented 7 years ago

Reported by: mastel Source: Discord

Viewer IP addresses are being returned from the raw XML of the stat sheet.

MacND commented 7 years ago

It appears that the offending module is the ngx-rtmp-stat-module. Specifically, these 3 lines of code:

NGX_RTMP_STAT_L("<address>");
NGX_RTMP_STAT_ES(&s->connection->addr_text);
NGX_RTMP_STAT_L("</address>");

Currently testing removal of this code.

MacND commented 7 years ago

Removal of:

NGX_RTMP_STAT_ES(&s->connection->addr_text);

Results in no IP address being returned within the <address></address> tags. Will edit the server install script with a sed to remove this before building.