mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[ntcore] Use NT3 client identity in front of unique id (#7293)
This way all NT3 clients are not identified as just NT3.
This commit is contained in:
@@ -873,8 +873,8 @@ void ServerImpl::ClientData3::ClientHello(std::string_view self_id,
|
||||
fmt::format("unsupported protocol version {:04x}", proto_rev));
|
||||
return;
|
||||
}
|
||||
// create a unique name (just ignore provided client id)
|
||||
m_name = fmt::format("NT3@{}", m_connInfo);
|
||||
// create a unique name including client id
|
||||
m_name = fmt::format("{}-NT3@{}", self_id, m_connInfo);
|
||||
m_connected(m_name, 0x0300);
|
||||
m_connected = nullptr; // no longer required
|
||||
|
||||
|
||||
Reference in New Issue
Block a user