aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2017-06-09 13:57:26 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2017-06-09 13:57:26 +0200
commit7b5895c90d4c94a52254a0b6c22cb29c31a5742b (patch)
treeeb6f5b3432055961b6e04859ea6f9f4f69a2493f
parentFix elixir tests on elixir 1.4 (diff)
Allow api access on both ipv4 and 6 loopback addresses
This should fix issue #1769
-rw-r--r--ejabberd.yml.example7
1 files changed, 4 insertions, 3 deletions
diff --git a/ejabberd.yml.example b/ejabberd.yml.example
index 638588998..87b0b81a4 100644
--- a/ejabberd.yml.example
+++ b/ejabberd.yml.example
@@ -487,6 +487,7 @@ acl:
loopback:
ip:
- "127.0.0.0/8"
+ - "::1/128"
##
## Bad XMPP servers
@@ -589,14 +590,14 @@ api_permissions:
who:
- access:
- allow:
- - ip: "127.0.0.1/8"
+ - acl: loopback
- acl: admin
- oauth:
- scope: "ejabberd:admin"
- access:
- allow:
- - ip: "127.0.0.1/8"
- - acl: admin
+ - acl: loopback
+ - acl: admin
what:
- "*"
- "!stop"