From 8ffb2233770e8c9c1a934e2f40cfa30e31f6b1e7 Mon Sep 17 00:00:00 2001 From: Dmitry Glushenok Date: Thu, 22 Jan 2015 23:11:51 +0300 Subject: [PATCH] Take gateways into account while pushing routes --- src/Cedar/Interop_OpenVPN.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cedar/Interop_OpenVPN.c b/src/Cedar/Interop_OpenVPN.c index 3f4ae23d..f615c144 100644 --- a/src/Cedar/Interop_OpenVPN.c +++ b/src/Cedar/Interop_OpenVPN.c @@ -2114,8 +2114,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); }