mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 13:05:36 +03:00
17 lines
256 B
Go
17 lines
256 B
Go
//go:build linux
|
|
|
|
package aghnet
|
|
|
|
import (
|
|
"github.com/AdguardTeam/AdGuardHome/internal/aghos"
|
|
)
|
|
|
|
func defaultHostsPaths() (paths []string) {
|
|
paths = []string{"etc/hosts"}
|
|
|
|
if aghos.IsOpenWrt() {
|
|
paths = append(paths, "tmp/hosts")
|
|
}
|
|
|
|
return paths
|
|
}
|