diff --git a/.gitignore b/.gitignore index 8cf5a8e..509c972 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /.idea -/client/config +/client /dist \ No newline at end of file diff --git a/client/.gitkeep b/client/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/main.go b/main.go index 017d750..64d8cc5 100644 --- a/main.go +++ b/main.go @@ -80,6 +80,10 @@ func main() { lib.Log().Error("创建配置文件夹失败") os.Exit(0) } + if !lib.PathExists(clientPath) { + lib.Log().Error("xray客户端不存在,请先下载系统对应版本客户端,放入client文件夹内,并赋予执行权限") + os.Exit(0) + } flags := CreateFlag() lib.Log().Info("正在请求订阅,请等待...") r, err := lib.Request(flags.Subscribe, "", 0)