optimize: disable send_redirects for Real Direct

This commit is contained in:
mzz2017
2023-02-26 05:07:42 +08:00
parent 5cf6dca509
commit 27d77d2b42
7 changed files with 71 additions and 14 deletions

View File

@ -236,8 +236,10 @@ func (c *ControlPlaneCore) bindLan(ifname string) error {
if err != nil {
return err
}
err = CheckIpforward(ifname)
if err != nil {
if err = CheckIpforward(ifname); err != nil {
return err
}
if err = CheckSendRedirects(ifname); err != nil {
return err
}
/// Insert an elem into IfindexParamsMap.