mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-22 07:14:15 +08:00
Improve: Use FRP to proxy payload download request
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user