Skip to content

Commit

Permalink
Support IPv6 question and response
Browse files Browse the repository at this point in the history
- Addresses #69
  • Loading branch information
edaniels committed Feb 9, 2024
1 parent dc39736 commit 9808cab
Show file tree
Hide file tree
Showing 3 changed files with 557 additions and 157 deletions.
12 changes: 11 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@ import (
const (
// DefaultAddress is the default used by mDNS
// and in most cases should be the address that the
// net.Conn passed to Server is bound to
// ipv4.PacketConn passed to Server is bound to
DefaultAddress = "224.0.0.0:5353"

// DefaultAddressIPv4 is the default used by mDNS
// and in most cases should be the address that the
// ipv4.PacketConn passed to Server is bound to
DefaultAddressIPv4 = DefaultAddress

// DefaultAddressIPv6 is the default IPv6 address used
// by mDNS and in most cases should be the address that
// the ipv6.PacketConn passed to Server is bound to
DefaultAddressIPv6 = "[FF02::]:5353"
)

// Config is used to configure a mDNS client or server.
Expand Down
Loading

0 comments on commit 9808cab

Please sign in to comment.