From da781c9187a9fefa78375822e1f46f5c041423a3 Mon Sep 17 00:00:00 2001 From: Bryan Stansell Date: Thu, 21 Mar 2019 21:19:42 -0700 Subject: [PATCH] Fix #8 - defaultaccess appears broken --- conserver/access.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conserver/access.c b/conserver/access.c index 7d411c2..51cf51c 100644 --- a/conserver/access.c +++ b/conserver/access.c @@ -355,7 +355,7 @@ SetDefAccess( if ((a->pcwho = StrDup(addr)) == (char *)0) OutOfMem(); - a->ctrust = 'a'; + a->ctrust = config->defaultaccess; a->pACnext = pACList; pACList = a; @@ -368,7 +368,7 @@ SetDefAccess( OutOfMem(); if ((pACList->pcwho = StrDup("127.0.0.1")) == (char *)0) OutOfMem(); - pACList->ctrust = 'a'; + pACList->ctrust = config->defaultaccess; CONDDEBUG((1, "SetDefAccess(): trust=%c, who=%s", pACList->ctrust, pACList->pcwho)); #else @@ -380,7 +380,7 @@ SetDefAccess( OutOfMem(); if ((a->pcwho = StrDup(addr)) == (char *)0) OutOfMem(); - a->ctrust = 'a'; + a->ctrust = config->defaultaccess; a->pACnext = pACList; pACList = a;