Allow api access on both ipv4 and 6 loopback addresses

This should fix issue #1769
This commit is contained in:
Paweł Chmielowski 2017-06-09 13:57:26 +02:00
parent 115cb23bd8
commit 7b5895c90d
1 changed files with 4 additions and 3 deletions

View File

@ -487,6 +487,7 @@ acl:
loopback: loopback:
ip: ip:
- "127.0.0.0/8" - "127.0.0.0/8"
- "::1/128"
## ##
## Bad XMPP servers ## Bad XMPP servers
@ -589,14 +590,14 @@ api_permissions:
who: who:
- access: - access:
- allow: - allow:
- ip: "127.0.0.1/8" - acl: loopback
- acl: admin - acl: admin
- oauth: - oauth:
- scope: "ejabberd:admin" - scope: "ejabberd:admin"
- access: - access:
- allow: - allow:
- ip: "127.0.0.1/8" - acl: loopback
- acl: admin - acl: admin
what: what:
- "*" - "*"
- "!stop" - "!stop"