diff --git a/cmd/attack/network.go b/cmd/attack/network.go index c6f238a9..b15d14eb 100644 --- a/cmd/attack/network.go +++ b/cmd/attack/network.go @@ -184,7 +184,7 @@ func NetworkPartitionCommand(dep fx.Option, options *core.NetworkCommand) *cobra Run: func(*cobra.Command, []string) { options.Action = core.NetworkPartitionAction options.CompleteDefaults() - fx.New(dep, fx.Invoke(commonNetworkAttackFunc)).Run() + utils.FxNewAppWithoutLog(dep, fx.Invoke(commonNetworkAttackFunc)).Run() }, } diff --git a/pkg/core/network.go b/pkg/core/network.go index 0b47340f..49c761f5 100644 --- a/pkg/core/network.go +++ b/pkg/core/network.go @@ -598,7 +598,7 @@ func (n *NetworkCommand) NeedApplyDNSServer() bool { } func (n *NetworkCommand) NeedAdditionalChains() bool { - if n.Action != NetworkPartitionAction || (n.Action == NetworkDelayAction && len(n.AcceptTCPFlags) != 0) { + if n.Action == NetworkPartitionAction || (n.Action == NetworkDelayAction && len(n.AcceptTCPFlags) != 0) { return true } return false