From 31f9b44aeccc15588b28bf6bb964ee2f957d07e1 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Mon, 27 Dec 2021 01:14:57 +0530 Subject: [PATCH] Add gateway to read_config --- src/ui/read_config.cpp | 3 +++ src/ui/read_config.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/ui/read_config.cpp b/src/ui/read_config.cpp index 8eb3b3e..3e2dc72 100644 --- a/src/ui/read_config.cpp +++ b/src/ui/read_config.cpp @@ -133,6 +133,9 @@ static void setConfigValues(const char * key, char *value){ if( !strcmp ( IEEE80211AC, key )) configValues.ieee80211ac = value; + + if( !strcmp ( GATEWAY, key )) + configValues.gateway = value; } diff --git a/src/ui/read_config.h b/src/ui/read_config.h index a46769a..2fb240f 100644 --- a/src/ui/read_config.h +++ b/src/ui/read_config.h @@ -92,6 +92,7 @@ typedef struct{ char *ieee80211n; char *ieee80211ac; char *no_haveged; + char *gateway; } ConfigValues;