mirror of
https://github.com/bstansell/conserver.git
synced 2025-02-08 19:50:09 +00:00
Merge pull request #19 from conserver/8-defaultaccess-appears-broken
Fix #8 - defaultaccess appears broken
This commit is contained in:
commit
bd837bf4ce
@ -355,7 +355,7 @@ SetDefAccess(
|
|||||||
if ((a->pcwho = StrDup(addr)) == (char *)0)
|
if ((a->pcwho = StrDup(addr)) == (char *)0)
|
||||||
OutOfMem();
|
OutOfMem();
|
||||||
|
|
||||||
a->ctrust = 'a';
|
a->ctrust = config->defaultaccess;
|
||||||
a->pACnext = pACList;
|
a->pACnext = pACList;
|
||||||
pACList = a;
|
pACList = a;
|
||||||
|
|
||||||
@ -368,7 +368,7 @@ SetDefAccess(
|
|||||||
OutOfMem();
|
OutOfMem();
|
||||||
if ((pACList->pcwho = StrDup("127.0.0.1")) == (char *)0)
|
if ((pACList->pcwho = StrDup("127.0.0.1")) == (char *)0)
|
||||||
OutOfMem();
|
OutOfMem();
|
||||||
pACList->ctrust = 'a';
|
pACList->ctrust = config->defaultaccess;
|
||||||
CONDDEBUG((1, "SetDefAccess(): trust=%c, who=%s", pACList->ctrust,
|
CONDDEBUG((1, "SetDefAccess(): trust=%c, who=%s", pACList->ctrust,
|
||||||
pACList->pcwho));
|
pACList->pcwho));
|
||||||
#else
|
#else
|
||||||
@ -380,7 +380,7 @@ SetDefAccess(
|
|||||||
OutOfMem();
|
OutOfMem();
|
||||||
if ((a->pcwho = StrDup(addr)) == (char *)0)
|
if ((a->pcwho = StrDup(addr)) == (char *)0)
|
||||||
OutOfMem();
|
OutOfMem();
|
||||||
a->ctrust = 'a';
|
a->ctrust = config->defaultaccess;
|
||||||
a->pACnext = pACList;
|
a->pACnext = pACList;
|
||||||
pACList = a;
|
pACList = a;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user