Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: qdm12/dns
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b2fcc90a359addc3f4928df87283ffd897042319
Choose a base ref
..
head repository: qdm12/dns
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6c3bec65c9bf8d7d89e01e4f4fd62cacfb592130
Choose a head ref
Showing with 2 additions and 1 deletion.
  1. +2 −1 pkg/nameserver/internal.go
3 changes: 2 additions & 1 deletion pkg/nameserver/internal.go
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ type SettingsInternalDNS struct {

func (s *SettingsInternalDNS) SetDefaults() {
s.IP = defaults.IP(s.IP, net.IPv4(127, 0, 0, 1)) //nolint:gomnd
s.Port = defaults.Uint16(s.Port, 53)
const defaultPort = 53
s.Port = defaults.Uint16(s.Port, defaultPort)
}

func (s SettingsInternalDNS) Validate() (err error) {