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

pyradius / pyrad / 10083837569
92%

Build:
DEFAULT BRANCH: master
Ran 24 Jul 2024 08:51PM UTC
Jobs 4
Files 20
Run time 1min
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.155% (+0.04%) from 93.118%
10083837569

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.

2368 of 2542 relevant lines covered (93.15%)

3.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.9 - 10083837569.1 24 Jul 2024 08:51PM UTC 0
93.15
GitHub Action Run
2 run-3.10 - 10083837569.2 24 Jul 2024 08:51PM UTC 0
93.15
GitHub Action Run
3 run-3.11-dev - 10083837569.3 24 Jul 2024 08:51PM UTC 0
93.15
GitHub Action Run
4 run-3.8 - 10083837569.4 24 Jul 2024 08:51PM UTC 0
93.15
GitHub Action Run
Source Files on build 10083837569
Detailed source file information is not available for this build.
  • Back to Repo
  • eb746347 on github
  • Prev Build on master (#10083760708)
  • Next Build on master (#10083858983)
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