must be a null term there

This commit is contained in:
Ben Menking
2026-05-30 16:16:36 -04:00
parent 81216f289c
commit d1cc84c001
+2 -2
View File
@@ -121,8 +121,8 @@ class CoreParser {
if( strlen($payload) > CoreProtocol::PUB_KEY_SIZE + 2 ) {
$m->type = ord($payload[33]);
$m->flags = ord($payload[34]);
$m->out_path = self::formatPublicKey(substr($payload, 35, CoreProtocol::MAX_PATH_SIZE));
$m->name = substr($payload, 99, 32);
$m->out_path = self::formatPublicKey(substr($payload, 35, CoreProtocol::MAX_PATH_SIZE+1));
$m->name = substr($payload, 100, 32);
if( strlen($payload) > 204 ) {
$m->last_advert_time = unpack('V', substr($payload, 203, 4))[1];