From cb6d9531b524e3d7c78568d5ff8d51627397bbd0 Mon Sep 17 00:00:00 2001 From: Daehun Hyun Date: Tue, 10 May 2022 17:35:01 +0900 Subject: [PATCH] Fixed an issue where routing was not added when receiving DHCP static routing options. --- src/Cedar/Proto_OpenVPN.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cedar/Proto_OpenVPN.c b/src/Cedar/Proto_OpenVPN.c index c97be1c4..9f56def2 100644 --- a/src/Cedar/Proto_OpenVPN.c +++ b/src/Cedar/Proto_OpenVPN.c @@ -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); }