Skip to content

Commit 1269ac2

Browse files
committed
refactor: remove rfind workaround with starts_with
1 parent ceedabb commit 1269ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitcoin-cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class NetinfoRequestHandler : public BaseRequestHandler
556556
peer.is_outbound ? "out" : "in",
557557
ConnectionTypeForNetinfo(peer.conn_type),
558558
peer.network,
559-
peer.transport_protocol_type.rfind('v', 0) == 0 ? peer.transport_protocol_type[1] : ' ',
559+
peer.transport_protocol_type.starts_with('v') == 0 ? peer.transport_protocol_type[1] : ' ',
560560
PingTimeToString(peer.min_ping),
561561
PingTimeToString(peer.ping),
562562
peer.last_send ? ToString(time_now - peer.last_send) : "",

0 commit comments

Comments
 (0)