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 c61a3ad commit c892668
Show file tree
Hide file tree
Showing 6 changed files with 712 additions and 176 deletions.
11 changes: 8 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ import (
)

const (
// DefaultAddress is the default used by mDNS
// DefaultAddressIPv4 is the default used by mDNS
// and in most cases should be the address that the
// net.Conn passed to Server is bound to
DefaultAddress = "224.0.0.0:5353"
// ipv4.PacketConn passed to Server is bound to
DefaultAddressIPv4 = "224.0.0.0:5353"

// 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 c892668

Please sign in to comment.