Previous PR #22087 cause new error, makes it impossible to use ipc protocol using zmq, this patch will exclude port checking on ipc urls.
exclude ipc scheme from port check #28020
pull JayBitron wants to merge 1 commits into bitcoin:master from JayBitron:master changing 1 files +1 −1-
JayBitron commented at 12:25 PM on July 2, 2023: none
-
exclude ipc scheme port check 0b1762c90d
-
DrahtBot commented at 12:25 PM on July 2, 2023: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process. A summary of reviews will appear here.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #27375 (net: support unix domain sockets for -proxy and -onion by pinheadmz)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
- DrahtBot renamed this:
exclude ipc scheme from port check
exclude ipc scheme from port check
on Jul 2, 2023 -
in src/init.cpp:1264 in 0b1762c90d
1260 | @@ -1261,7 +1261,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) 1261 | for (const std::string& socket_addr : args.GetArgs(port_option)) { 1262 | std::string host_out; 1263 | uint16_t port_out{0}; 1264 | - if (!SplitHostPort(socket_addr, port_out, host_out)) { 1265 | + if (socket_addr.rfind("ipc:", 0) != 0 && !SplitHostPort(socket_addr, port_out, host_out)) {
JayBitron commented at 9:16 PM on July 4, 2023:comparethrows an exception if the input string is lower than 4 character, but since this a conflict PR, please close it.luke-jr changes_requestedluke-jr commented at 4:57 PM on July 4, 2023: membernit: Rebasing onto bbbf89a9de0757c44880495244f90967f7147c0d would enable a clean merge to 25.x also
JayBitron closed this on Jul 14, 2023luke-jr referenced this in commit defe61d32a on Aug 16, 2023bitcoin locked this on Jul 13, 2024
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-25 18:13 UTC
More mirrored repositories can be found on mirror.b10c.me