Skip to content

Commit

Permalink
Expose validate_https_trackers with SettingsPack::validateHttpsTracke…
Browse files Browse the repository at this point in the history
…rs methods
  • Loading branch information
gubatron committed Feb 8, 2022
1 parent dc255cd commit 2561abe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.2.?.?
* Expose settings_pack.validate_https_trackers with SettingsPack::validateHttpsTrackers methods

1.2.15.2
* less verbose error messages when loading the library

Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/frostwire/jlibtorrent/SettingsPack.java
Original file line number Diff line number Diff line change
Expand Up @@ -606,4 +606,20 @@ public SettingsPack alertQueueSize(int value) {
sp.set_int(settings_pack.int_types.alert_queue_size.swigValue(), value);
return this;
}


/**
* {@code validate_https_trackers} when set to true, the certificate of HTTPS trackers
* and HTTPS web seeds will be validated against the system's certificate store (as defined by OpenSSL).
* If the system does not have a certificate store, this option may have to be disabled
* in order to get trackers and web seeds to work).
*/
public SettingsPack validateHttpsTrackers(boolean value) {
sp.set_bool(settings_pack.bool_types.validate_https_trackers.swigValue(), value);
return this;
}

public boolean validateHttpsTrackers() {
return sp.get_bool(settings_pack.bool_types.validate_https_trackers.swigValue());
}
}

0 comments on commit 2561abe

Please sign in to comment.