Skip to content

Commit

Permalink
auto-redirect: Cleanup before start
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jun 17, 2024
1 parent 086271e commit 9cf07a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redirect_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ func (r *autoRedirect) Start() error {
startAt := time.Now()
var err error
if r.useNFTables {
r.cleanupNFTables()
err = r.setupNFTables()
} else {
r.cleanupIPTables()
err = r.setupIPTables()
}
if err != nil {
Expand Down

0 comments on commit 9cf07a2

Please sign in to comment.