Skip to content

Commit

Permalink
[ntcore] Use NT3 client identity in front of unique id (#7293)
Browse files Browse the repository at this point in the history
This way all NT3 clients are not identified as just NT3.
  • Loading branch information
sciencewhiz authored Oct 27, 2024
1 parent 1c220eb commit 2c857cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntcore/src/main/native/cpp/net/ServerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2c857cd

Please sign in to comment.