mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
Check that a packet start with PROTO::MAGIC (#80)
Co-authored-by: Christian Vallières <christian.vallieres@evimbec.ca>
This commit is contained in:
parent
1c77ae1ef9
commit
32da05b3ec
@ -334,7 +334,7 @@ int main() {
|
||||
if (index == 7) {
|
||||
_sendResponse(_handleRequest(buffer));
|
||||
index = 0;
|
||||
} else {
|
||||
} else if (buffer[0] == PROTO::MAGIC) {
|
||||
last = micros();
|
||||
++index;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user