Skip to content

Commit 2c857cd

Browse files
authored
[ntcore] Use NT3 client identity in front of unique id (#7293)
This way all NT3 clients are not identified as just NT3.
1 parent 1c220eb commit 2c857cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ntcore/src/main/native/cpp/net/ServerImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,8 @@ void ServerImpl::ClientData3::ClientHello(std::string_view self_id,
873873
fmt::format("unsupported protocol version {:04x}", proto_rev));
874874
return;
875875
}
876-
// create a unique name (just ignore provided client id)
877-
m_name = fmt::format("NT3@{}", m_connInfo);
876+
// create a unique name including client id
877+
m_name = fmt::format("{}-NT3@{}", self_id, m_connInfo);
878878
m_connected(m_name, 0x0300);
879879
m_connected = nullptr; // no longer required
880880

0 commit comments

Comments
 (0)