mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-03 00:10:52 +02:00
Bugfix: bitcoin-cli: Check length of peer.transport_protocol_type
This commit is contained in:
parent
3d255dfb67
commit
c3e632b441
@ -551,7 +551,7 @@ public:
|
||||
peer.is_outbound ? "out" : "in",
|
||||
ConnectionTypeForNetinfo(peer.conn_type),
|
||||
peer.network,
|
||||
peer.transport_protocol_type.starts_with('v') ? peer.transport_protocol_type[1] : ' ',
|
||||
(peer.transport_protocol_type.size() == 2 && peer.transport_protocol_type[0] == 'v') ? peer.transport_protocol_type[1] : ' ',
|
||||
PingTimeToString(peer.min_ping),
|
||||
PingTimeToString(peer.ping),
|
||||
peer.last_send ? ToString(time_now - peer.last_send) : "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user