Files
ctrld/cmd
Cuong Manh Le c82a0e2562 cmd/ctrld: optimizing set/reset DNS
Currently, when reset DNS, ctrld always find the net.Interface by
interface name. This may produce unexpected error because the interface
table may be cleared at the time ctrld is being stopped.

Instead, we can get the net interface only once, and use that interface
for restoring the DNS before shutting down.

While at it, also making logging message clearer.
2023-01-24 16:57:16 +07:00
..
2023-01-24 16:57:16 +07:00