Skip to content

Commit cb6b78f

Browse files
dns config should have options not opts (#303)
Signed-off-by: crosbymichael <[email protected]>
1 parent b61b932 commit cb6b78f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Containerization/DNSConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extension DNS {
6060
}
6161

6262
if !options.isEmpty {
63-
text += "opts \(options.joined(separator: " "))\n"
63+
text += "options \(options.joined(separator: " "))\n"
6464
}
6565

6666
return text

Tests/ContainerizationTests/DNSTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct DNSTests {
2929
options: ["ndots:2", "timeout:1"]
3030
)
3131

32-
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"
32+
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"
3333
#expect(dns.resolvConf == expected)
3434
}
3535

0 commit comments

Comments
 (0)