Skip to content

Commit c761ba8

Browse files
committed
Fix pfctl executable path in PacketFilter DNS reload
The reload process was referencing /sbin/reloadProcess (the variable name) instead of /sbin/pfctl. This caused DNS create and delete operations to fail with 'file not found' when reloading packet filter rules.
1 parent 113a6ec commit c761ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Services/ContainerAPIService/Client/PacketFilter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public struct PacketFilter {
183183
let reloadProcess = Foundation.Process()
184184
var reloadStatus: Int32
185185

186-
reloadProcess.executableURL = URL(fileURLWithPath: "/sbin/reloadProcess")
186+
reloadProcess.executableURL = URL(fileURLWithPath: "/sbin/pfctl")
187187
reloadProcess.arguments = ["-f", configURL.path]
188188
reloadProcess.standardOutput = null
189189
reloadProcess.standardError = null

0 commit comments

Comments
 (0)