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

libbitcoin / libbitcoin-network
13%

Build:
DEFAULT BRANCH: master
Repo Added 22 Feb 2016 05:18PM UTC
Files 345
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • HEAD
  • artifacts
  • bump-copyright-2026
  • fix-host-allowlist-normalization
  • message-typo-fixes
  • refs/tags/v3.8.0
  • v3.5.0
  • v3.6.0
  • version3

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

Relevant lines Covered
Build:
Build:
65576 RELEVANT LINES 8477 COVERED LINES
120.9 HITS PER LINE
Source Files on master
  • Tree
  • List 345
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26235566483 master 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... push 21 May 2026 04:24PM UTC evoskuil github
12.93
26235238741 master Work around xcode pollution of global namespace. push 21 May 2026 03:53PM UTC evoskuil github
12.97
26230691846 master Work around xcode pollution of global namespace. push 21 May 2026 02:33PM UTC evoskuil github
12.97
25973621163 master Merge pull request #812 from evoskuil/master Make proxy::websocket() access thread safe. push 16 May 2026 10:24PM UTC web-flow github
12.97
25971382265 master Merge 793d7954e into cafc809e6 Pull #811 16 May 2026 09:26PM UTC web-flow github
12.97
25971384176 master Merge pull request #811 from evoskuil/master Socket body writer requires non-empty buffer to write empty. push 16 May 2026 09:21PM UTC web-flow github
12.97
25969460790 master Merge pull request #810 from evoskuil/master Expose websocket() method on protocol_http. push 16 May 2026 08:27PM UTC web-flow github
12.97
25968700815 master Merge pull request #809 from evoskuil/master Make logger un/subscribe mutable. push 16 May 2026 07:51PM UTC web-flow github
12.97
25969459252 master Merge 973f7fa94 into f73f7c3e4 Pull #810 16 May 2026 07:36PM UTC web-flow github
12.97
25968696684 master Merge efb6faefb into d8889c0d8 Pull #809 16 May 2026 06:17PM UTC web-flow github
12.97
See All Builds (1480)
  • Repo on GitHub
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