mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-10-02 12:40:06 +00:00
Add config option to disable the localhost workaround
There are some network configurations in which it's undesirable; such as reverse tunneling through ssh. These are obscure enough to allow leaving the option undocumented (in the example config file).
This commit is contained in:
@@ -445,7 +445,7 @@ void CNLoginServer::characterSelect(CNSocket* sock, CNPacketData* data) {
|
||||
* the shard IP has been configured to an address the local machine can't
|
||||
* reach itself from.
|
||||
*/
|
||||
if (sock->sockaddr.sin_addr.s_addr == htonl(INADDR_LOOPBACK))
|
||||
if (settings::LOCALHOSTWORKAROUND && sock->sockaddr.sin_addr.s_addr == htonl(INADDR_LOOPBACK))
|
||||
shard_ip = "127.0.0.1";
|
||||
|
||||
memcpy(resp.g_FE_ServerIP, shard_ip, strlen(shard_ip));
|
||||
|
Reference in New Issue
Block a user