mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-29 13:51:51 +02: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:
1 parent
8491f9c455
commit
3e62bd3dbd
1 file changed
+1
-1
@@ -145,7 +145,7 @@ func LocalResolverIP() string {
|
|||||||
// HomeDir returns the home directory of ctrld on current router.
|
// HomeDir returns the home directory of ctrld on current router.
|
||||||
func HomeDir() (string, error) {
|
func HomeDir() (string, error) {
|
||||||
switch Name() {
|
switch Name() {
|
||||||
case ddwrt.Name, merlin.Name, tomato.Name:
|
case ddwrt.Name, firewalla.Name, merlin.Name, tomato.Name:
|
||||||
exe, err := os.Executable()
|
exe, err := os.Executable()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
Reference in new issue
Block a user