mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 07:03:23 +08:00
chore: Make unix socket follow homeDir
This commit is contained in:
parent
d4ececae20
commit
99b274acbc
@ -159,6 +159,8 @@ func Start(addr string, tlsAddr string, secret string,
|
||||
}
|
||||
|
||||
func StartUnix(addr string, isDebug bool) {
|
||||
addr = C.Path.Resolve(addr)
|
||||
|
||||
dir := filepath.Dir(addr)
|
||||
if _, err := os.Stat(dir); os.IsNotExist(err) {
|
||||
if err := os.MkdirAll(dir, 0o755); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user