Skip to content

Commit

Permalink
增加无客户端提示
Browse files Browse the repository at this point in the history
  • Loading branch information
han3sui committed Mar 10, 2021
1 parent 0961bcf commit ae0a031
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/.idea
/client/config
/client
/dist
Empty file removed client/.gitkeep
Empty file.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae0a031

Please sign in to comment.