From 1ef8c4941feec98c25b0a27443d10cee538c3e37 Mon Sep 17 00:00:00 2001
From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net>
Date: Tue, 8 Sep 2020 20:17:03 +0700
Subject: [PATCH] [*] Fixed route tables update after reused addr lease

---
 CMakeLists.txt                              | 2 +-
 modules/service/vpn/dap_chain_net_srv_vpn.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b0e3d1327..78a2001410 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@ project(cellframe-sdk C)
 cmake_minimum_required(VERSION 2.8)
 
 set(CMAKE_C_STANDARD 11)
-set(CELLFRAME_SDK_NATIVE_VERSION "2.5-13")
+set(CELLFRAME_SDK_NATIVE_VERSION "2.5-14")
 add_definitions ("-DCELLFRAME_SDK_VERSION=\"${CELLFRAME_SDK_NATIVE_VERSION}\"")
 
 set(DAPSDK_MODULES "")
diff --git a/modules/service/vpn/dap_chain_net_srv_vpn.c b/modules/service/vpn/dap_chain_net_srv_vpn.c
index cbd7a4603e..878f25901b 100644
--- a/modules/service/vpn/dap_chain_net_srv_vpn.c
+++ b/modules/service/vpn/dap_chain_net_srv_vpn.c
@@ -1166,6 +1166,7 @@ void s_ch_packet_in_vpn_address_request(dap_stream_ch_t* a_ch, dap_chain_net_srv
             DAP_DELETE(l_item_ipv4);
             l_srv_session->stats.packets_sent++;
             l_srv_session->stats.bytes_sent+= l_data_wrote;
+            s_tun_send_msg_ip_assigned_all(l_ch_vpn, l_ch_vpn->addr_ipv4);
         }
     }else{
         struct in_addr n_addr = { 0 }, n_addr_max;
-- 
GitLab