fix(bpf): revert using bpf_redirect_peer (#480)

This commit is contained in:
/gray 2024-03-30 20:59:58 +08:00 committed by GitHub
parent 7aad3a9474
commit 36fa05b105
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1062,7 +1062,7 @@ new_connection:
// Assign to control plane.
control_plane:
prep_redirect_to_control_plane(skb, link_h_len, &tuples, l4proto, &ethh, 0, &tcph);
return bpf_redirect_peer(PARAM.dae0_ifindex, 0);
return bpf_redirect(PARAM.dae0_ifindex, 0);
direct:
return TC_ACT_OK;