mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-12 10:44:58 +03:00
Change IP structure so that IPv4 addresses are stored in RFC3493 format
In addition to saving 4 bytes for each instantiation, this change makes IP-related operations faster and clearer. https://tools.ietf.org/html/rfc3493.html#section-3.7
This commit is contained in:
@ -10041,7 +10041,7 @@ bool CmIsEnabled(HWND hWnd, UINT id)
|
||||
}
|
||||
case CMD_SHORTCUT:
|
||||
// Create a shortcut
|
||||
if (cm->Client->Rpc->Sock->RemoteIP.addr[0] != 127)
|
||||
if (IsLocalHostIP(&cm->Client->Rpc->Sock->RemoteIP) == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user