From ce8551fc616f1ffcfdb50245e2257bb41bd951b0 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 16 Aug 2020 12:15:30 +0200 Subject: [PATCH] Added better -A handling with config files --- src/edge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/edge.c b/src/edge.c index 7e52687..037c2f3 100644 --- a/src/edge.c +++ b/src/edge.c @@ -624,11 +624,11 @@ static int loadFromFile(const char *path, n2n_edge_conf_t *conf, n2n_tuntap_priv if(equal) { equal[0] = '\0'; - value = &equal[1]; + if((value[0] == '\0') && (key[1] != '\0')) + value = &key[1]; } else { - value = NULL; /* Adding an exception for -A_ -z_ which can come