Skip to content

Commit fa31f9f

Browse files
authored
Merge pull request kubernetes#92860 from aojea/iptMonitor
iptables: don't do reverse DNS lookups
2 parents 79ee122 + 924553b commit fa31f9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/util/iptables/iptables.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@ func (runner *runner) chainExists(table Table, chain Chain) (bool, error) {
607607
runner.mu.Lock()
608608
defer runner.mu.Unlock()
609609

610+
trace := utiltrace.New("iptables Monitor CANARY check")
611+
defer trace.LogIfLong(2 * time.Second)
612+
610613
_, err := runner.run(opListChain, fullArgs)
611614
return err == nil, err
612615
}
@@ -617,7 +620,7 @@ const (
617620
opCreateChain operation = "-N"
618621
opFlushChain operation = "-F"
619622
opDeleteChain operation = "-X"
620-
opListChain operation = "-L"
623+
opListChain operation = "-S"
621624
opAppendRule operation = "-A"
622625
opCheckRule operation = "-C"
623626
opDeleteRule operation = "-D"

0 commit comments

Comments
 (0)