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

pyradius / pyrad / 10083837569 / 1
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 24 Jul 2024 08:51PM UTC
Files 20
Run time 2s
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

24 Jul 2024 08:50PM UTC coverage: 93.152% (+0.04%) from 93.116%
10083837569.1

push

github

GIC-de
Fix KeyError in _HandleCoaPacket for 0.0.0.0 host

When defining a client host `0.0.0.0` for a CoA radius Server, then a
KeyError will occur when handling a CoA packet.

    File ".../pyrad/server.py", line 250, in _HandleCoaPacket
        pkt.secret = self.hosts[pkt.source[0]].secret
                     ~~~~~~~~~~^^^^^^^^^^^^^^^
    KeyError: '172.16.0.100'

The reason seems to be that _AddSecret() was added at some point to
support using `0.0.0.0` as a host, but the `pkt.secret = ...` assignment
that it ought to replace was not removed.

This patch fixes the behavior by removing the stale assignment.

2367 of 2541 relevant lines covered (93.15%)

0.93 hits per line

Source Files on job run-3.9 - 10083837569.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10083837569
  • eb746347 on github
  • Prev Job for on master (#10083760708.3)
  • Next Job for on master (#10083858983.1)
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