mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-04 13:36:35 +02:00
all: unify code to handle static DNS file path
This commit is contained in:
@@ -186,7 +186,7 @@ func getAllDHCPNameservers() []string {
|
||||
Log(context.Background(), logger.Debug(),
|
||||
"Failed to patch interface name %s: %v", drIfaceName, err)
|
||||
}
|
||||
staticNs, file := SavedStaticNameservers(drIface)
|
||||
staticNs, file := SavedStaticNameserversAndPath(drIface)
|
||||
Log(context.Background(), logger.Debug(),
|
||||
"static dns servers from %s: %v", file, staticNs)
|
||||
if len(staticNs) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user