修改时间容器前

This commit is contained in:
2022-06-20 03:10:33 +08:00
parent ff48fc1d25
commit e17ffc3965
9 changed files with 116 additions and 73 deletions

View File

@@ -351,9 +351,10 @@ void DNFTOOL::GMNotice(char* str, int type, int color)
#else
std::string DNFTOOL::GetIP()
{
httplib::SSLClient Tencword("gitee.com");
//std::cout << "获取Ip" << std::endl;
httplib::SSLClient Tencword("yosin-team.coding.net");
std::string body;
auto res = Tencword.Get("/yosin_team/request-ip/raw/master/README.md",
auto res = Tencword.Get("/p/huoqushuju/d/GetIp/git/raw/master/ip.txt?download=false",
[&](const char* data, size_t data_length) {
body.append(data, data_length);
return true;