下载地址增加 key 认证
agent二进制下载地址增加 key 认证,防止刷流量
This commit is contained in:
1 parent
fd7a083139
commit
9ae1fea7d8
6 files changed
+57
-46
No files matched your search
@@ -275,7 +275,7 @@ func (c *Config) GetDownloadURL() string {
|
||||
if runtime.GOOS == "windows" {
|
||||
filename += ".exe"
|
||||
}
|
||||
return c.Endpoint() + "/api/agent/downloads/" + filename
|
||||
return c.Endpoint() + "/api/agent/downloads/" + filename + "?key=" + c.Server.APIKey
|
||||
}
|
||||
|
||||
func (c *Config) Endpoint() string {
|
||||
|
||||
Reference in new issue
Block a user