mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +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