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

@@ -1432,6 +1432,11 @@ void CMy2015RemoteDlg::ApplyFrpSettings()
cfg.SetStr(udp, "local_port", arr[i]);
cfg.SetStr(udp, "remote_port", arr[i]);
}
int fileServerPort = THIS_CFG.GetInt("settings", "FileSvrPort", 80);
std::string name = "YAMA-FileServer";
cfg.SetStr(name, "type", "tcp");
cfg.SetInt(name, "local_port", fileServerPort);
cfg.SetInt(name, "remote_port", fileServerPort);
}
void CMy2015RemoteDlg::OnSysCommand(UINT nID, LPARAM lParam)