File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
import { readdirSync , renameSync } from 'node:fs' ;
9
9
10
10
const subsystems = [
11
+ 'acl' ,
11
12
'backend' ,
12
13
'cache-override' ,
13
14
'cache' ,
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ declare module 'fastly:acl' {
14
14
* import { Acl } from 'fastly:acl';
15
15
* addEventListener('fetch', async (evt) => {
16
16
* const myAcl = Acl.open('myacl');
17
- * const { action, prefix } = await myAcl.lookup(evt.client.address);
18
- * evt.respondWith(new Response(action === 'block ' ? 'blocked' : 'allowed'));
17
+ * const result = await myAcl.lookup(evt.client.address);
18
+ * evt.respondWith(new Response(result?. action === 'BLOCK ' ? 'blocked' : 'allowed'));
19
19
* });
20
20
*
21
21
* @param ipAddress Ipv6 or IPv4 IP address string
You can’t perform that action at this time.
0 commit comments