mirror of
https://github.com/joohoi/acme-dns.git
synced 2024-12-22 16:03:43 +07:00
Fix test not to assume preset UseHeaders value (#139)
This commit is contained in:
parent
2da94f1462
commit
7fbb5261c8
@ -6,6 +6,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestUpdateAllowedFromIP(t *testing.T) {
|
func TestUpdateAllowedFromIP(t *testing.T) {
|
||||||
|
Config.API.UseHeader = false
|
||||||
userWithAllow := newACMETxt()
|
userWithAllow := newACMETxt()
|
||||||
userWithAllow.AllowFrom = cidrslice{"192.168.1.2/32", "[::1]/128"}
|
userWithAllow.AllowFrom = cidrslice{"192.168.1.2/32", "[::1]/128"}
|
||||||
userWithoutAllow := newACMETxt()
|
userWithoutAllow := newACMETxt()
|
||||||
|
Loading…
Reference in New Issue
Block a user