Add nftables support for auto-redirect

This commit is contained in:
世界
2024-05-31 17:44:28 +08:00
parent 6875a33c28
commit a2575526b6
8 changed files with 760 additions and 325 deletions

View File

@@ -208,7 +208,7 @@ func (t *Tun) Start() error {
}
if t.autoRedirect != nil {
monitor.Start("initiating auto redirect")
err = t.autoRedirect.Start(t.tunOptions.Name)
err = t.autoRedirect.Start()
monitor.Finish()
if err != nil {
return E.Cause(err, "auto redirect")