feat: update manual
Some checks failed
Create Scripts / Build (push) Has been cancelled

This commit is contained in:
椰子 2024-08-07 14:40:17 +08:00
parent ea9ab77439
commit 5c9b63f181

View File

@ -7,9 +7,10 @@ use reqwest;
#[tokio::main]
async fn main() {
create().await.unwrap();
println!("1. Disable mangle rule: {}", ":foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle disable $i }");
println!("2. Remove old CIDR list: {}", ":foreach i in=[ find list=$address_list ] do={ remove number=$i }");
println!("1. Disable mangle rules: {}", ":foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle disable $i }");
println!("2. Remove old CIDR list: {}", ":foreach i in=[/ip firewall address_list find list=chn_list ] do={/ip firewall address_list remove number=$i }");
println!("3. Load new CIDR list: {}", "/import chn_list.rsc")
println!("4. Enable mangle rules: {}", ":foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle enable $i }")
}
async fn create() -> Result<(), Box<dyn Error>> {