mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-09 19:20:41 +03:00
Cedar: Bind the special listeners to the specified IP address
This commit is contained in:
parent
aa3a797edb
commit
6c44cecc64
@ -489,12 +489,12 @@ void ListenerTCPMainLoop(LISTENER *r)
|
|||||||
}
|
}
|
||||||
else if (r->Protocol == LISTENER_ICMP)
|
else if (r->Protocol == LISTENER_ICMP)
|
||||||
{
|
{
|
||||||
s = ListenRUDP(VPN_RUDP_SVC_NAME, NULL, ListenerRUDPRpcRecvProc, NULL, MAKE_SPECIAL_PORT(IP_PROTO_ICMPV4),
|
s = ListenRUDPEx(VPN_RUDP_SVC_NAME, NULL, ListenerRUDPRpcRecvProc, NULL, MAKE_SPECIAL_PORT(IP_PROTO_ICMPV4),
|
||||||
true, false);
|
true, false, NULL, 0, &r->Cedar->Server->ListenIP);
|
||||||
}
|
}
|
||||||
else if (r->Protocol == LISTENER_DNS)
|
else if (r->Protocol == LISTENER_DNS)
|
||||||
{
|
{
|
||||||
s = ListenRUDP(VPN_RUDP_SVC_NAME, NULL, ListenerRUDPRpcRecvProc, NULL, 53, true, true);
|
s = ListenRUDPEx(VPN_RUDP_SVC_NAME, NULL, ListenerRUDPRpcRecvProc, NULL, 53, true, true, NULL, 0, &r->Cedar->Server->ListenIP);
|
||||||
}
|
}
|
||||||
else if (r->Protocol == LISTENER_REVERSE)
|
else if (r->Protocol == LISTENER_REVERSE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user