@@ -48,8 +48,8 @@ type SettingEngine struct {
48
48
candidates struct {
49
49
ICELite bool
50
50
ICENetworkTypes []NetworkType
51
- InterfaceFilter func (string ) bool
52
- IPFilter func (net.IP ) bool
51
+ InterfaceFilter func (string ) ( keep bool )
52
+ IPFilter func (net.IP ) ( keep bool )
53
53
NAT1To1IPs []string
54
54
NAT1To1IPCandidateType ICECandidateType
55
55
MulticastDNSMode ice.MulticastDNSMode
@@ -201,15 +201,15 @@ func (e *SettingEngine) SetNetworkTypes(candidateTypes []NetworkType) {
201
201
// This can be used to exclude certain network interfaces from ICE. Which may be
202
202
// useful if you know a certain interface will never succeed, or if you wish to reduce
203
203
// the amount of information you wish to expose to the remote peer
204
- func (e * SettingEngine ) SetInterfaceFilter (filter func (string ) bool ) {
204
+ func (e * SettingEngine ) SetInterfaceFilter (filter func (string ) ( keep bool ) ) {
205
205
e .candidates .InterfaceFilter = filter
206
206
}
207
207
208
208
// SetIPFilter sets the filtering functions when gathering ICE candidates
209
209
// This can be used to exclude certain ip from ICE. Which may be
210
210
// useful if you know a certain ip will never succeed, or if you wish to reduce
211
211
// the amount of information you wish to expose to the remote peer
212
- func (e * SettingEngine ) SetIPFilter (filter func (net.IP ) bool ) {
212
+ func (e * SettingEngine ) SetIPFilter (filter func (net.IP ) ( keep bool ) ) {
213
213
e .candidates .IPFilter = filter
214
214
}
215
215
0 commit comments