Feature: add path to script config

script:
    path: ./script.star
This commit is contained in:
yaling888
2022-06-06 05:20:59 +08:00
parent 663017a775
commit 3610d3dd84
2 changed files with 26 additions and 2 deletions

View File

@@ -252,6 +252,7 @@ Script enables users to programmatically select a policy for the packets with mo
mode: script
script:
# path: ./script.star
code: |
def main(ctx, metadata):
if metadata["process_name"] == 'apsd':