Skip to content

Commit 068114e

Browse files
authored
Merge pull request #15 from arduino/scerza/fix-mac-ipv6
Changed mdns library to fix IPv6 issues on OS X
2 parents 94b56ce + db45fde commit 068114e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.licenses/mdns-discovery/go/github.com/hashicorp/mdns.dep.yml renamed to .licenses/mdns-discovery/go/github.com/arduino/mdns.dep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
name: github.com/hashicorp/mdns
3-
version: v1.0.4
2+
name: github.com/arduino/mdns
3+
version: v1.0.5-0.20211124112247-3bf2ec2117c5
44
type: go
55
summary:
6-
homepage: https://pkg.go.dev/github.com/hashicorp/mdns
6+
homepage: https://pkg.go.dev/github.com/arduino/mdns
77
license: mit
88
licenses:
99
- sources: LICENSE

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ go 1.16
55
require (
66
github.com/arduino/go-paths-helper v1.6.1 // indirect
77
github.com/arduino/go-properties-orderedmap v1.5.0
8+
github.com/arduino/mdns v1.0.5-0.20211124112247-3bf2ec2117c5
89
github.com/arduino/pluggable-discovery-protocol-handler v1.2.0
9-
github.com/hashicorp/mdns v1.0.4
1010
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ github.com/arduino/go-paths-helper v1.6.1/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4
44
github.com/arduino/go-properties-orderedmap v1.4.0/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
55
github.com/arduino/go-properties-orderedmap v1.5.0 h1:istmr13qQN3nneuU3lsqlMvI6jqB3u8QUfVU1tX/t/8=
66
github.com/arduino/go-properties-orderedmap v1.5.0/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
7+
github.com/arduino/mdns v1.0.5-0.20211124112247-3bf2ec2117c5 h1:fbhij4dK/w6KocjReBg48O6UuyRSLo31Xl1mYq1JyGc=
8+
github.com/arduino/mdns v1.0.5-0.20211124112247-3bf2ec2117c5/go.mod h1:mo3tCC9kw/TYfyrZ1TcsGozoy6CFe+GXPvyoEfZDLIY=
79
github.com/arduino/pluggable-discovery-protocol-handler v1.2.0 h1:gw6W8CtgGc+kh+DKfh+z6cUVPqaZh9Tu3XCt/uGgJUE=
810
github.com/arduino/pluggable-discovery-protocol-handler v1.2.0/go.mod h1:vQfYGJnunfcscLoUcZKqJBlEkZ/qiE28TQj+RV9UT74=
911
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
1012
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
11-
github.com/hashicorp/mdns v1.0.4 h1:sY0CMhFmjIPDMlTB+HfymFHCaYLhgifZ0QhjaYKD/UQ=
12-
github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc=
1313
github.com/miekg/dns v1.1.41 h1:WMszZWJG0XmzbK9FEmzH2TVcqYzFesusSIB41b8KHxY=
1414
github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI=
1515
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"time"
2929

3030
properties "github.com/arduino/go-properties-orderedmap"
31+
"github.com/arduino/mdns"
3132
discovery "github.com/arduino/pluggable-discovery-protocol-handler"
32-
"github.com/hashicorp/mdns"
3333
)
3434

3535
func main() {
@@ -126,6 +126,7 @@ func (d *MDNSDiscovery) StartSync(eventCB discovery.EventCallback, errorCB disco
126126
Timeout: discoveryInterval,
127127
Entries: queriesChan,
128128
WantUnicastResponse: false,
129+
DisableIPv6: true,
129130
}
130131

131132
ctx, cancel := context.WithCancel(context.Background())

0 commit comments

Comments
 (0)