1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

ignore any intranet bandwidth.

This commit is contained in:
winlin 2015-06-19 11:59:41 +08:00
parent 2e437a28b4
commit 8cd68a1eb3
2 changed files with 57 additions and 4 deletions

View file

@ -609,6 +609,9 @@ extern SrsNetworkDevices* srs_get_network_devices();
extern int srs_get_network_devices_count();
// the deamon st-thread will update it.
extern void srs_update_network_devices();
// detect whether specified device is internet public address.
extern bool srs_net_device_is_internet(std::string ifname);
extern bool srs_net_device_is_internet(in_addr_t addr);
// system connections, and srs rtmp network summary
class SrsNetworkRtmpServer