diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-07-14 05:19:19 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-07-14 05:19:19 +0000 |
commit | 49b706039cc020726602b263b0d1c42115fa944d (patch) | |
tree | cbc482fd2cb4874c7a2e3671f156d7c718c2c02b | |
parent | 83904827bcfccfa1488bb9d34ee3bc55e4be0e97 (diff) | |
download | samba-49b706039cc020726602b263b0d1c42115fa944d.tar.gz |
transfer the 127.0.0.1 behaviour from the 2.0 branch
-rw-r--r-- | source/lib/access.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lib/access.c b/source/lib/access.c index 9d8ad67f53d..01f559750fa 100644 --- a/source/lib/access.c +++ b/source/lib/access.c @@ -201,6 +201,15 @@ BOOL allow_access(char *deny_list,char *allow_list, client[0] = cname; client[1] = caddr; + /* if it is loopback then always allow unless specifically denied */ + if (strcmp(caddr, "127.0.0.1") == 0) { + if (deny_list && + list_match(deny_list,(char *)client,client_match)) { + return False; + } + return True; + } + /* if theres no deny list and no allow list then allow access */ if ((!deny_list || *deny_list == 0) && (!allow_list || *allow_list == 0)) { |