diff options
author | Roman Zeyde <me@romanzey.de> | 2024-09-06 23:07:46 +0300 |
---|---|---|
committer | Roman Zeyde <me@romanzey.de> | 2024-09-14 20:33:32 +0300 |
commit | fc7b507e9a595a7bf91f4e0f42b4d842af8b93f3 (patch) | |
tree | 6a06bff59ceaefced732abdeb96ca53edaba1630 /src/init.cpp | |
parent | 2756797ecaf07b1a39645282e879bc70890e3f0b (diff) |
tidy: add clang-tidy `modernize-use-starts-ends-with` check
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index e9a41db8ec..eb19a7c720 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1356,7 +1356,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) if (!SplitHostPort(socket_addr, port_out, host_out)) { #ifdef HAVE_SOCKADDR_UN // Allow unix domain sockets for some options e.g. unix:/some/file/path - if (!unix || socket_addr.find(ADDR_PREFIX_UNIX) != 0) { + if (!unix || !socket_addr.starts_with(ADDR_PREFIX_UNIX)) { return InitError(InvalidPortErrMsg(arg, socket_addr)); } #else |