ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
538 stars 243 forks source link

Bug: Config.get should return Object instead of String #126

Closed remmerw closed 5 years ago

remmerw commented 5 years ago

The class Config in IPFS contains a function

public String get(String key) throws IOException

which should return an Object instead of a a String -> public Object get(String key) throws IOException

because some of the return values are Boolean or Integer.

e.g. ipfs.config.get("Discovery.MDNS.Interval") -> returns an integer

-> tested with 0.4.18

ianopolous commented 5 years ago

Thanks for the bug report. This is fixed in master now.