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 authored and Cuong Manh Le committed 2024-03-22 16:07:19 +07:00
1 parent 8491f9c455
commit 3e62bd3dbd
1 file changed
+1 -1
+1 -1
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