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

libbitcoin / libbitcoin-network / 26235566483
13%

Build:
DEFAULT BRANCH: master
Ran 21 May 2026 04:24PM UTC
Jobs 1
Files 345
Run time 2min
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

21 May 2026 03:24PM UTC coverage: 12.927% (-0.04%) from 12.965%
26235566483

push

github

evoskuil
Fix http host/origin allowlist never matching configured values

is_allowed_host/is_allowed_origin compared the request host (normalized
via to_normal_host, which substitutes default_port when the port is zero)
against the raw configured endpoints in options_.hosts/origins, which are
not normalized. A configured value without an explicit port (e.g.
host = localhost) therefore never matched any request — not even an
identical Host header — because the request side carried default_port
(80/443) while the configured side carried port 0.

Compare against host_names()/origin_names() instead, which apply the same
to_lower(default_port) normalization to the configured values, so both
sides are symmetric.

Verified on a live node: with host = localhost configured, Host: localhost
is now accepted (was rejected), while non-listed hosts are still rejected.

8477 of 65576 relevant lines covered (12.93%)

120.9 hits per line

Coverage Regressions

Lines Coverage ∆ File
12
10.58
-4.1% libbitcoin-network/src/error.cpp
9
41.03
-11.54% libbitcoin-network/src/net/socket_connect.cpp
2
64.1
-5.13% usr/include/c++/13/bits/stl_iterator_base_funcs.h
2
0.0
-100.0% usr/include/x86_64-linux-gnu/bits/poll2.h
Jobs
ID Job ID Ran Files Coverage
1 26235566483.1 21 May 2026 04:24PM UTC 345
12.93
GitHub Action Run
Source Files on build 26235566483
  • Tree
  • List 345
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26235566483
  • 3f082cb4 on github
  • Prev Build on master (#26235238741)
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