mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
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:
committed by
Cuong Manh Le
parent
8491f9c455
commit
3e62bd3dbd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user