瀏覽代碼

Take gateways into account while pushing routes

Dmitry Glushenok 10 年之前
父節點
當前提交
8ffb223377
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Cedar/Interop_OpenVPN.c

+ 2 - 2
src/Cedar/Interop_OpenVPN.c

@@ -2114,8 +2114,8 @@ void OvsRecvPacket(OPENVPN_SERVER *s, LIST *recv_packet_list, UINT protocol)
 											if (r->Exists)
 											if (r->Exists)
 											{
 											{
 												Format(l3_options, sizeof(l3_options),
 												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);
 												StrCat(option_str, sizeof(option_str), l3_options);
 											}
 											}