fix 0x1220 multihash prefix for v2 btmh part

This commit is contained in:
ghost 2023-09-05 19:14:14 +03:00
parent c6edc793ee
commit d1496747bf
2 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,7 @@
"type": "library",
"require": {
"php": "^8.1",
"yggverse/parser": ">=0.3.0",
"yggverse/parser": ">=0.4.0",
"jdenticon/jdenticon": "^1.0"
},
"license": "MIT",

View File

@ -447,8 +447,7 @@ switch (isset($_GET['target']) ? urldecode($_GET['target']) : false)
case 2:
// @TODO temporarily disabled because of address too long error in some clients
// $xt[] = sprintf('xt=urn:btmh:%s', $infoHash->value);
$xt[] = sprintf('xt=urn:btmh:1220%s', $infoHash->value);
break;
}