Skip to content

Commit

Permalink
🔒️ 允许禁止命令执行
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Oct 11, 2021
1 parent b0ba028 commit b3203f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ func run() {
ClientSecret: agentConf.ClientSecret,
}

go pty.DownloadDependency()
if !agentConf.DisableCommandExecute {
go pty.DownloadDependency()
}
// 上报服务器信息
go reportState()
// 更新IP信息
Expand Down

0 comments on commit b3203f8

Please sign in to comment.