mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
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.