Add ipfilter to exclude ip from candidates gather (#1052)

This commit is contained in:
cnderrauber
2022-09-29 14:40:38 +08:00
committed by GitHub
parent 9c8d9fca0c
commit 4b630d2156
5 changed files with 73 additions and 18 deletions
+6
View File
@@ -64,6 +64,7 @@ type RTCConfig struct {
UseExternalIP bool `yaml:"use_external_ip"`
UseICELite bool `yaml:"use_ice_lite,omitempty"`
Interfaces InterfacesConfig `yaml:"interfaces"`
IPs IPsConfig `yaml:"ips"`
// Number of packets to buffer for NACK
PacketBufferSize int `yaml:"packet_buffer_size,omitempty"`
@@ -107,6 +108,11 @@ type InterfacesConfig struct {
Excludes []string `yaml:"excludes"`
}
type IPsConfig struct {
Includes []string `yaml:"includes"`
Excludes []string `yaml:"excludes"`
}
type AudioConfig struct {
// minimum level to be considered active, 0-127, where 0 is loudest
ActiveLevel uint8 `yaml:"active_level"`