Merge remote branch

This commit is contained in:
yaling888
2021-10-21 22:37:30 +08:00
97 changed files with 1147 additions and 577 deletions

View File

@ -2,7 +2,6 @@ package executor
import (
"fmt"
"io/ioutil"
"net"
"os"
"runtime"
@ -32,15 +31,13 @@ import (
"github.com/Dreamacro/clash/tunnel"
)
var (
mux sync.Mutex
)
var mux sync.Mutex
func readConfig(path string) ([]byte, error) {
if _, err := os.Stat(path); os.IsNotExist(err) {
return nil, err
}
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
return nil, err
}