temporary fix: @consumer need resolution

This commit is contained in:
Hiddify
2024-01-26 02:18:21 +01:00
parent 2bb999ae21
commit 0d11680691
4 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package mobile
import (
"encoding/json"
"os"
"path/filepath"
"github.com/hiddify/libcore/config"
_ "github.com/sagernet/gomobile"
@@ -18,6 +19,7 @@ func Parse(path string, tempPath string, debug bool) error {
}
func BuildConfig(path string, configOptionsJson string) (string, error) {
os.Chdir(filepath.Dir(path))
fileContent, err := os.ReadFile(path)
if err != nil {
return "", err