mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Log server connection to actionstream (#16505)
This commit is contained in:
parent
20f8eb9a6c
commit
d5ddee6cbf
1 changed files with 8 additions and 0 deletions
|
@ -153,6 +153,14 @@ void Client::handleCommand_AuthAccept(NetworkPacket* pkt)
|
||||||
Send(&resp_pkt);
|
Send(&resp_pkt);
|
||||||
|
|
||||||
m_state = LC_Init;
|
m_state = LC_Init;
|
||||||
|
|
||||||
|
// Log meaningful info
|
||||||
|
if (!m_internal_server) {
|
||||||
|
Address remote = m_con->GetPeerAddress(PEER_ID_SERVER);
|
||||||
|
actionstream << "Connected to " << m_address_name << " (";
|
||||||
|
remote.print(actionstream);
|
||||||
|
actionstream << ")" << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::handleCommand_AcceptSudoMode(NetworkPacket* pkt)
|
void Client::handleCommand_AcceptSudoMode(NetworkPacket* pkt)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue