@@ -67,18 +67,18 @@ public IPFS(MultiAddress addr) {
67
67
}
68
68
69
69
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 );
71
71
}
72
72
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 );
75
75
}
76
76
77
77
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 );
79
79
}
80
80
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 ) {
82
82
if (connectTimeoutMillis < 0 ) throw new IllegalArgumentException ("connect timeout must be zero or positive" );
83
83
if (readTimeoutMillis < 0 ) throw new IllegalArgumentException ("read timeout must be zero or positive" );
84
84
this .host = host ;
@@ -94,7 +94,7 @@ public IPFS(String host, int port, String version, boolean overrideMinVersionChe
94
94
95
95
this .apiVersion = version ;
96
96
// Check IPFS is sufficiently recent
97
- if (! overrideMinVersionCheck ) {
97
+ if (enforceMinVersion ) {
98
98
try {
99
99
Version detected = Version .parse (version ());
100
100
if (detected .isBefore (MIN_VERSION ))
0 commit comments