internal/router: use same dir with executable as home dir on Firewalla

Since when /etc is not persisted after rebooting.
This commit is contained in:
Cuong Manh Le
2024-03-07 15:18:11 +07:00
committed by Cuong Manh Le
parent 8491f9c455
commit 3e62bd3dbd

View File

@@ -145,7 +145,7 @@ func LocalResolverIP() string {
// HomeDir returns the home directory of ctrld on current router.
func HomeDir() (string, error) {
switch Name() {
case ddwrt.Name, merlin.Name, tomato.Name:
case ddwrt.Name, firewalla.Name, merlin.Name, tomato.Name:
exe, err := os.Executable()
if err != nil {
return "", err