Improve: Use FRP to proxy payload download request

This commit is contained in:
yuanyuanxiang
2026-01-18 12:47:56 +01:00
parent 0b65a24ac2
commit f4fe81be34
6 changed files with 19 additions and 3 deletions

View File

@@ -290,7 +290,7 @@ bool IsValidFileName(const CString& strName)
}
CString BuildPayloadUrl(const char* ip, const char* name) {
static int port = THIS_CFG.GetInt("settings", "FileSvrPort", 80);
int port = THIS_CFG.GetInt("settings", "FileSvrPort", 80);
CString url = CString("http://") + CString(ip) + ":" + std::to_string(port).c_str() + CString("/payloads/") + name;
return url;
}