1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 01:59:53 +03:00

Merge PR #1589: Fix static route pushing to OpenVPN clients

This commit is contained in:
Davide Beatrici 2022-05-10 21:09:19 +02:00 committed by GitHub
commit bf206bd7ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2486,8 +2486,8 @@ void OvsRecvPacket(OPENVPN_SERVER *s, LIST *recv_packet_list, UINT protocol)
if (r->Exists)
{
Format(l3_options, sizeof(l3_options),
",route %r %r vpn_gateway",
&r->Network, &r->SubnetMask);
",route %r %r %r",
&r->Network, &r->SubnetMask, &r->Gateway);
StrCat(option_str, sizeof(option_str), l3_options);
}