Fix test not to assume preset UseHeaders value (#139)

This commit is contained in:
Joona Hoikkala 2019-01-25 18:36:29 +02:00 committed by GitHub
parent 2da94f1462
commit 7fbb5261c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()