Commit 6319628e authored by nanahira's avatar nanahira

add mycard ipset on fly

parent 85ef51a1
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
shell: /etc/wireguard/global-postup.sh shell: /etc/wireguard/global-postup.sh
args: args:
creates: /tmp/mycard_global_postup_done creates: /tmp/mycard_global_postup_done
- name: mycard ipset
shell: 'ipset add mycard {{item}} || true'
with_items: '{{route_lists.mycard}}'
# 为了提高测试时候的性能,不改动wg的时候注释掉这段 # 为了提高测试时候的性能,不改动wg的时候注释掉这段
- name: 'clean up null connections first' - name: 'clean up null connections first'
include_tasks: 'protocols/{{item.protocol}}/configure.yaml' include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment