Skip to content

Commit cbde953

Browse files
committed
Added less verbose MultiAddress IPFs constructor
1 parent 486378b commit cbde953

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/org/ipfs/IPFS.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public IPFS(String host, int port) {
3131
this(host, port, "/api/v0/");
3232
}
3333

34+
public IPFS(String multiaddr) {
35+
this(new MultiAddress(multiaddr));
36+
}
37+
3438
public IPFS(MultiAddress addr) {
3539
this(addr.getHost(), addr.getTCPPort(), "/api/v0/");
3640
}

0 commit comments

Comments
 (0)