Skip to content

Commit

Permalink
Fix type crash with no IPv6 address.
Browse files Browse the repository at this point in the history
  • Loading branch information
jum committed Feb 9, 2024
1 parent 8d41d48 commit 75add0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fritzdyn.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (fh *FritzHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
Value: *host.Ip4addr,
},
}
if host.Ip4addr != nil {
if host.Ip6addr != nil {
recs = append(recs, libdns.Record{
Type: "AAAA",
Name: sub,
Expand Down

0 comments on commit 75add0f

Please sign in to comment.