From c2175a4095e95a0745a37460aef1f502d62f077a Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Mon, 30 Jan 2023 20:34:07 +0800 Subject: [PATCH] docs: add private to direct --- component/control/kern/tproxy.c | 2 +- example.dae | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/component/control/kern/tproxy.c b/component/control/kern/tproxy.c index 71816d1..714c504 100644 --- a/component/control/kern/tproxy.c +++ b/component/control/kern/tproxy.c @@ -1571,7 +1571,7 @@ int tproxy_wan_egress(struct __sk_buff *skb) { encap_after_udp_hdr(skb, ipv6h, ihl, ipv4_tot_len, &new_hdr, sizeof(new_hdr)); - // Redirect. + // Redirect from egress to ingress. if ((ret = bpf_redirect(skb->ifindex, BPF_F_INGRESS)) == TC_ACT_SHOT) { bpf_printk("Shot bpf_redirect: %d", ret); return TC_ACT_SHOT; diff --git a/example.dae b/example.dae index f9ae21b..a7aca4d 100644 --- a/example.dae +++ b/example.dae @@ -49,6 +49,7 @@ group { routing { # See routing.md for full examples. + ip(geoip:private) -> direct ip(geoip:cn) -> direct domain(geosite:cn) -> direct final: my_group