mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 14:37:37 +00:00
Fix IPv6 in ACLs
This commit is contained in:

committed by
Kristoffer Dalby

parent
725bbd7408
commit
c72401a99b
@@ -237,6 +237,24 @@ func TestACLHostsInNetMapTable(t *testing.T) {
|
||||
"user2": 3, // ns1 + ns2 (return path)
|
||||
},
|
||||
},
|
||||
"ipv6-acls-1470": {
|
||||
users: map[string]int{
|
||||
"user1": 2,
|
||||
"user2": 2,
|
||||
},
|
||||
policy: policy.ACLPolicy{
|
||||
ACLs: []policy.ACL{
|
||||
{
|
||||
Action: "accept",
|
||||
Sources: []string{"*"},
|
||||
Destinations: []string{"0.0.0.0/0:*", "::/0:*"},
|
||||
},
|
||||
},
|
||||
}, want: map[string]int{
|
||||
"user1": 3, // ns1 + ns2
|
||||
"user2": 3, // ns2 + ns1
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for name, testCase := range tests {
|
||||
|
Reference in New Issue
Block a user