• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cilium / cilium / 42713
39%

Build:
DEFAULT BRANCH: master
Ran 08 Jun 2022 12:40PM UTC
Jobs 2
Files 687
Run time 19min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jun 2022 12:05PM UTC coverage: 39.48% (+0.001%) from 39.479%
42713

push

travis-ci-com

joamaki
iptables: fix typo in addProxyRule condition

In d812b925de ("iptables: don't ignore errors") we introduced a typo in
the logic used to select old proxy rules in addProxyRules:

    -               if strings.Contains(rule, "-A CILIUM_PRE_mangle ") && strings.Contains(rule, "cilium: TPROXY to host "+name) && !strings.Contains(rule, portMatch) {
    +               if strings.Contains(rule, "-A CILIUM_PRE_mangle ") && !strings.Contains(rule, "cilium: TPROXY to host "+name) && strings.Contains(rule, portMatch) {

Then later on, in c61038bff4 ("iptables: invert conditions to simplify logic"),
assuming the condition was correct, we just inverted it:

    -               if strings.Contains(rule, "-A CILIUM_PRE_mangle ") && !strings.Contains(rule, "cilium: TPROXY to host "+name) && strings.Contains(rule, portMatch) {
    +               if !strings.Contains(rule, "-A CILIUM_PRE_mangle ") || strings.Contains(rule, "cilium: TPROXY to host "+name) || !strings.Contains(rule, portMatch) {

The correct condition to use should be the initial one, inverted:

    if !strings.Contains(rule, "-A CILIUM_PRE_mangle ") || !strings.Contains(rule, "cilium: TPROXY to host "+name) || strings.Contains(rule, portMatch) {

Fixes: #19693
Signed-off-by: Gilberto Bertin <jibi@cilium.io>

1 of 1 new or added line in 1 file covered. (100.0%)

37746 of 95607 relevant lines covered (39.48%)

4921.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42713.1 08 Jun 2022 12:45PM UTC 0
39.45
Travis Job 42713.1
2 42713.2 08 Jun 2022 12:40PM UTC 0
39.47
Travis Job 42713.2
Source Files on build 42713
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #42713
  • 2d944e93 on github
  • Prev Build on master (#42705)
  • Next Build on master (#42723)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc