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