1234567891011121314151617181920212223242526272829 |
- package config
- import (
- "net"
- )
- const (
- MdnsIPv4 = "224.0.0.251"
- MdnsIPv6 = "ff02::fb"
- MdnsPort = 5353
- ForceUnicast = false
- DefaultTTL = 120
- BufSize = 65536
- BufReadDeadline = 2
- )
- var (
- MdnsIPv4Addr = &net.UDPAddr{
- IP: net.ParseIP(MdnsIPv4),
- Port: MdnsPort,
- }
- MdnsIPv6Addr = &net.UDPAddr{
- IP: net.ParseIP(MdnsIPv6),
- Port: MdnsPort,
- }
- )
|