MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / isLocal

Method isLocal

source/game/StarUniverseServer.cpp:265–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool UniverseServer::isLocal(ConnectionId clientId) const {
266 ReadLocker clientsLocker(m_clientsLock);
267 if (auto clientContext = m_clients.value(clientId))
268 return !clientContext->remoteAddress();
269 return false;
270}
271
272bool UniverseServer::isPvp(ConnectionId clientId) const {
273 ReadLocker clientsLocker(m_clientsLock);

Callers 1

localCheckMethod · 0.80

Calls 2

remoteAddressMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected