@@ -32,15 +32,15 @@ type SettingEngine struct {
3232 ICERelayAcceptanceMinWait * time.Duration
3333 }
3434 candidates struct {
35- ICELite bool
36- ICENetworkTypes []NetworkType
37- InterfaceFilter func (string ) bool
38- NAT1To1IPs []string
39- NAT1To1IPCandidateType ICECandidateType
40- GenerateMulticastDNSCandidates bool
41- MulticastDNSHostName string
42- UsernameFragment string
43- Password string
35+ ICELite bool
36+ ICENetworkTypes []NetworkType
37+ InterfaceFilter func (string ) bool
38+ NAT1To1IPs []string
39+ NAT1To1IPCandidateType ICECandidateType
40+ MulticastDNSMode ice. MulticastDNSMode
41+ MulticastDNSHostName string
42+ UsernameFragment string
43+ Password string
4444 }
4545 replayProtection struct {
4646 DTLS * uint
@@ -181,9 +181,9 @@ func (e *SettingEngine) SetVNet(vnet *vnet.Net) {
181181 e .vnet = vnet
182182}
183183
184- // GenerateMulticastDNSCandidates instructs pion/ice to generate host candidates with mDNS hostnames instead of IP Addresses
185- func (e * SettingEngine ) GenerateMulticastDNSCandidates ( generateMulticastDNSCandidates bool ) {
186- e .candidates .GenerateMulticastDNSCandidates = generateMulticastDNSCandidates
184+ // SetICEMulticastDNSMode controls if pion/ice queries and generates mDNS ICE Candidates
185+ func (e * SettingEngine ) SetICEMulticastDNSMode ( multicastDNSMode ice. MulticastDNSMode ) {
186+ e .candidates .MulticastDNSMode = multicastDNSMode
187187}
188188
189189// SetMulticastDNSHostName sets a static HostName to be used by pion/ice instead of generating one on startup
0 commit comments