mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 19:31:45 +03:00
19 lines
272 B
Go
19 lines
272 B
Go
|
//go:build linux
|
||
|
// +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
|
||
|
}
|