mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Pad to nearest 32-bits
This commit is contained in:
@@ -87,6 +87,11 @@ async fn connect_if_permitted() -> Result<TcpStream, QueueError> {
|
|||||||
log::error!("Unable to write version to {host}, {e:?}");
|
log::error!("Unable to write version to {host}, {e:?}");
|
||||||
QueueError::SendFail
|
QueueError::SendFail
|
||||||
})?;
|
})?;
|
||||||
|
stream.write_u16(2).await
|
||||||
|
.map_err(|e| {
|
||||||
|
log::error!("Unable to write padding to {host}, {e:?}");
|
||||||
|
QueueError::SendFail
|
||||||
|
})?;
|
||||||
stream.write_u64(bytes.len() as u64).await
|
stream.write_u64(bytes.len() as u64).await
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
log::error!("Unable to write size to {host}, {e:?}");
|
log::error!("Unable to write size to {host}, {e:?}");
|
||||||
|
|||||||
Reference in New Issue
Block a user