Add setting for the information packet

This commit is contained in:
Tixx
2024-10-13 23:32:15 +02:00
parent 6aeb2eb736
commit 956d6f50e1
5 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ void TNetwork::Identify(TConnection&& RawConnection) {
return;
} else if (Code == 'I') {
boost::system::error_code ec;
write(RawConnection.Socket, buffer(THeartbeatThread::lastCall), ec);
write(RawConnection.Socket, buffer(Application::Settings.getAsBool(Settings::Key::General_InformationPacket) ? THeartbeatThread::lastCall : ""), ec);
} else {
beammp_errorf("Invalid code got in Identify: '{}'", Code);
}