Skip to content

Commit 7f1f0a2

Browse files
committed
treat i2p connection as secure
Signed-off-by: R4SAS <r4sas@i2pmail.org>
1 parent 5effa6f commit 7f1f0a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ private SSLSocket upgradeSocketToTls(final Socket socket) throws IOException {
881881

882882
private void processStreamFeatures(final Tag currentTag) throws IOException {
883883
this.streamFeatures = tagReader.readElement(currentTag);
884-
final boolean isSecure = features.encryptionEnabled || Config.ALLOW_NON_TLS_CONNECTIONS || account.isOnion();
884+
final boolean isSecure = features.encryptionEnabled || Config.ALLOW_NON_TLS_CONNECTIONS || account.isOnion() || account.isI2P();
885885
final boolean needsBinding = !isBound && !account.isOptionSet(Account.OPTION_REGISTER);
886886
if (this.streamFeatures.hasChild("starttls") && !features.encryptionEnabled) {
887887
sendStartTLS();

0 commit comments

Comments
 (0)