Minor changes

- Remove unneeded string conversions
- Remove resolve-retry infinite openvpn configuration (unneeded)
- Add cover on single tests and single test files for Vscode
This commit is contained in:
Quentin McGaw
2020-07-12 19:15:05 +00:00
parent 6afa4f69a0
commit 07efea612b
8 changed files with 17 additions and 15 deletions

View File

@@ -122,7 +122,7 @@ func generateUnboundConf(settings settings.DNS, client network.Client, logger lo
providerData := constants.DNSProviderMapping()[provider]
for _, IP := range providerData.IPs {
forwardZoneLines = append(forwardZoneLines,
fmt.Sprintf(" forward-addr: %s@853#%s", IP.String(), providerData.Host))
fmt.Sprintf(" forward-addr: %s@853#%s", IP, providerData.Host))
}
}
lines = append(lines, forwardZoneLines...)