Skip to content

Commit 55babbb

Browse files
authored
Merge pull request #250 from ipfs-shipyard/fix/name-resolve
fix: name resolve accepts any (resolvable) name
2 parents b2fb7f2 + 033d132 commit 55babbb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/io/ipfs/api/IPFS.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,11 @@ public String resolve(Multihash hash) throws IOException {
626626
Map res = (Map) retrieveAndParse("name/resolve?arg=" + hash);
627627
return (String)res.get("Path");
628628
}
629+
630+
public String resolve(String name) throws IOException {
631+
Map res = (Map) retrieveAndParse("name/resolve?arg=" + name);
632+
return (String)res.get("Path");
633+
}
629634
}
630635

631636
public class DHT {

0 commit comments

Comments
 (0)