mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +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:
@@ -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