From e31c88b59cf3d15ebb959ab26af8cbe46de37dc9 Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Tue, 7 May 2019 22:09:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改未读取配置文件或读取出错时的远程主机信息。 --- client/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/test.cpp b/client/test.cpp index a426b04..ac8319a 100644 --- a/client/test.cpp +++ b/client/test.cpp @@ -116,8 +116,8 @@ int main(int argc, const char *argv[]) if (0 == strlen(ip)) { strcpy(p+1, "settings.ini"); - GetPrivateProfileStringA("settings", "localIp", "127.0.0.1", ip, _MAX_PATH, path); - port = GetPrivateProfileIntA("settings", "ghost", 2356, path); + GetPrivateProfileStringA("settings", "localIp", "yuanyuanxiang.oicp.net", ip, _MAX_PATH, path); + port = GetPrivateProfileIntA("settings", "ghost", 19141, path); } printf("[server] %s:%d\n", ip, port); do