Browse Source

fix 0x1220 multihash prefix for v2 btmh part

main
ghost 1 year ago
parent
commit
d1496747bf
  1. 2
      composer.json
  2. 3
      src/public/action.php

2
composer.json

@ -4,7 +4,7 @@ @@ -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",

3
src/public/action.php

@ -447,8 +447,7 @@ switch (isset($_GET['target']) ? urldecode($_GET['target']) : false) @@ -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;
}

Loading…
Cancel
Save