Files
ice/mdns.go
Sean DuBois eab497aa25 Seed everytime when calling generateRandString
This isn't in a hot path, so no performance hit. Also want to avoid side
effects from doing in an init
2019-12-08 14:02:03 -08:00

21 lines
715 B
Go

package ice
// MulticastDNSMode represents the different Multicast modes ICE can run in
type MulticastDNSMode byte
// MulticastDNSMode enum
const (
// MulticastDNSModeDisabled means remote mDNS candidates will be discarded, and local host candidates will use IPs
MulticastDNSModeDisabled MulticastDNSMode = iota + 1
// MulticastDNSModeQueryOnly means remote mDNS candidates will be accepted, and local host candidates will use IPs
MulticastDNSModeQueryOnly
// MulticastDNSModeQueryAndGather means remote mDNS candidates will be accepted, and local host candidates will use mDNS
MulticastDNSModeQueryAndGather
)
func generateMulticastDNSName() (string, error) {
return generateRandString("", ".local")
}