Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mzz2017 committed Jan 8, 2024
1 parent 5893a9c commit 748113a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions control/control_plane_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ func (c *controlPlaneCore) addAcceptInputMark() error {
func (c *controlPlaneCore) delAcceptInputMark() error {
output, err := exec.Command("sh", "-c", "nft --handle --numeric list chain inet firewalld filter_INPUT").Output()
if err != nil {
// No firewalld.
return nil
return err
}
lines := strings.Split(string(output), "\n")
regex := regexp.MustCompile("meta mark " + consts.TproxyMarkString + " accept # handle ([0-9]+)")
Expand Down

0 comments on commit 748113a

Please sign in to comment.