refactor: move getDNS type to os_linux.go

Move getDNS type definition from dns.go to os_linux.go where it is used.
Remove the now-empty dns.go file. This change improves code organization
by keeping platform-specific types with their implementations.
This commit is contained in:
Cuong Manh Le
2025-06-19 18:31:47 +07:00
committed by Cuong Manh Le
parent 59ece456b1
commit a16b25ad1d
2 changed files with 2 additions and 4 deletions

View File

@@ -1,4 +0,0 @@
package cli
//lint:ignore U1000 use in os_linux.go
type getDNS func(iface string) []string

View File

@@ -28,6 +28,8 @@ import (
const resolvConfBackupFailedMsg = "open /etc/resolv.pre-ctrld-backup.conf: read-only file system"
type getDNS func(iface string) []string
// allocate loopback ip
// sudo ip a add 127.0.0.2/24 dev lo
func allocateIP(ip string) error {