ketoo / NoahGameFrame

A fast, scalable, distributed game server engine/framework for C++, include the actor library, network library, can be used as a real time multiplayer game engine ( MMO RPG/MOBA ), which support C#/Lua script/ Unity3d, Cocos2dx and plan to support Unreal.
https://github.com/ketoo/NoahGameFrame/wiki
Apache License 2.0
3.97k stars 1.09k forks source link

NFHttpServer remote_host 异常 #215

Closed cosmosir closed 4 years ago

cosmosir commented 4 years ago
const char* hostname = evhttp_request_get_host(req);
if (hostname != NULL)
{
    //evhttp_find_vhost(http, &http, hostname);
    pRequest->remoteHost = hostname;
}

这个地方的hostname获取的是本机的地址,req里面有remote_host是客户端地址,为啥不用?

ketoo commented 4 years ago

我一会看一下。谢谢反馈。

ketoo commented 4 years ago

Fixed, thanks.