dns config should have options not opts (#303)

Signed-off-by: crosbymichael <michael_crosby@apple.com>
This commit is contained in:
Michael Crosby
2025-09-29 16:35:58 -04:00
committed by GitHub
parent b61b932adf
commit cb6b78f580
2 changed files with 2 additions and 2 deletions
@@ -60,7 +60,7 @@ extension DNS {
}
if !options.isEmpty {
text += "opts \(options.joined(separator: " "))\n"
text += "options \(options.joined(separator: " "))\n"
}
return text
+1 -1
View File
@@ -29,7 +29,7 @@ struct DNSTests {
options: ["ndots:2", "timeout:1"]
)
let expected = "nameserver 8.8.8.8\nnameserver 1.1.1.1\ndomain example.com\nsearch internal.com test.com\nopts ndots:2 timeout:1\n"
let expected = "nameserver 8.8.8.8\nnameserver 1.1.1.1\ndomain example.com\nsearch internal.com test.com\noptions ndots:2 timeout:1\n"
#expect(dns.resolvConf == expected)
}