@@ -67,18 +67,18 @@ public IPFS(MultiAddress addr) {
6767 }
6868
6969 public IPFS (String host , int port , String version , boolean ssl ) {
70- this (host , port , version , false , DEFAULT_CONNECT_TIMEOUT_MILLIS , DEFAULT_READ_TIMEOUT_MILLIS , ssl );
70+ this (host , port , version , true , DEFAULT_CONNECT_TIMEOUT_MILLIS , DEFAULT_READ_TIMEOUT_MILLIS , ssl );
7171 }
7272
73- public IPFS (String host , int port , String version , boolean overrideMinVersionCheck , boolean ssl ) {
74- this (host , port , version , overrideMinVersionCheck , DEFAULT_CONNECT_TIMEOUT_MILLIS , DEFAULT_READ_TIMEOUT_MILLIS , ssl );
73+ public IPFS (String host , int port , String version , boolean enforceMinVersion , boolean ssl ) {
74+ this (host , port , version , enforceMinVersion , DEFAULT_CONNECT_TIMEOUT_MILLIS , DEFAULT_READ_TIMEOUT_MILLIS , ssl );
7575 }
7676
7777 public IPFS (String host , int port , String version , int connectTimeoutMillis , int readTimeoutMillis , boolean ssl ) {
78- this (host , port , version , false , connectTimeoutMillis , readTimeoutMillis , ssl );
78+ this (host , port , version , true , connectTimeoutMillis , readTimeoutMillis , ssl );
7979 }
8080
81- public IPFS (String host , int port , String version , boolean overrideMinVersionCheck , int connectTimeoutMillis , int readTimeoutMillis , boolean ssl ) {
81+ public IPFS (String host , int port , String version , boolean enforceMinVersion , int connectTimeoutMillis , int readTimeoutMillis , boolean ssl ) {
8282 if (connectTimeoutMillis < 0 ) throw new IllegalArgumentException ("connect timeout must be zero or positive" );
8383 if (readTimeoutMillis < 0 ) throw new IllegalArgumentException ("read timeout must be zero or positive" );
8484 this .host = host ;
@@ -94,7 +94,7 @@ public IPFS(String host, int port, String version, boolean overrideMinVersionChe
9494
9595 this .apiVersion = version ;
9696 // Check IPFS is sufficiently recent
97- if (! overrideMinVersionCheck ) {
97+ if (enforceMinVersion ) {
9898 try {
9999 Version detected = Version .parse (version ());
100100 if (detected .isBefore (MIN_VERSION ))
0 commit comments