check for new advert or advert

This commit is contained in:
Ben Menking
2026-05-29 13:12:53 -04:00
parent 3b34c242ba
commit 186a235b55
+1 -1
View File
@@ -104,7 +104,7 @@ class CoreParser {
$m->code = ord($payload[0]);
$m->pub_key = base64_encode(substr($payload, 1, CoreProtocol::PUB_KEY_SIZE));
if( strlen($payload) > CoreProtocol::PUB_KEY_SIZE ) {
if( strlen($payload) > CoreProtocol::PUB_KEY_SIZE + 2 ) {
$m->type = ord($payload[33]);
$m->flags = ord($payload[34]);
$m->out_path = substr($payload, 35, CoreProtocol::MAX_PATH_SIZE);