1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 11:55:08 +03:00

Fixed bug in VPN client

This commit is contained in:
macaronnik 2015-11-12 13:48:17 +03:00
parent 97df3c6b0c
commit 776d3816d0

View File

@ -464,9 +464,16 @@ void ListenerTCPMainLoop(LISTENER *r)
if (r->Protocol == LISTENER_TCP) if (r->Protocol == LISTENER_TCP)
{ {
if (r->ShadowIPv6 == false) if (r->ShadowIPv6 == false)
{
if (r->Cedar->Server == NULL)
{
s = ListenEx2(r->Port, r->LocalOnly, r->EnableConditionalAccept, NULL);
}
else
{ {
s = ListenEx2(r->Port, r->LocalOnly, r->EnableConditionalAccept, &r->Cedar->Server->ListenIP); s = ListenEx2(r->Port, r->LocalOnly, r->EnableConditionalAccept, &r->Cedar->Server->ListenIP);
} }
}
else else
{ {
s = ListenEx6(r->Port, r->LocalOnly); s = ListenEx6(r->Port, r->LocalOnly);