fix(mdns): answer hostname A queries after TTL (#96)

* fix(mdns): answer hostname A queries after TTL

Zeroconf answers only service queries. The A record for <alias>.local
expired from the OS cache after 120 seconds and lookups then failed.

Vendor zeroconf v1.0.0 with one change: it now answers A and AAAA
queries for the registered hostname. Fixes #95.

* fix(deps): update golang.org/x/net to v0.60.0

govulncheck reports several x/net advisories fixed in v0.60.0.
The Security Scan job fails on them.
This commit is contained in:
2026-10-09 15:21:35 +01:00
committed by GitHub
parent 7e3c112738
commit 8bd14cce3b
14 changed files with 1573 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
package zeroconf
import "strings"
// trimDot is used to trim the dots from the start or end of a string
func trimDot(s string) string {
return strings.Trim(s, ".")
}