mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
FIX F%?§@N SOCKS5
This commit is contained in:
parent
034b7f3844
commit
792a9a348b
6 changed files with 14 additions and 8 deletions
|
@ -101,7 +101,7 @@ public final class JetManager extends Manager implements JingleDescriptionManage
|
|||
|
||||
JetSecurity security = new JetSecurity(method, recipient, content.getName(), Aes256GcmNoPadding.NAMESPACE);
|
||||
content.setSecurity(security);
|
||||
session.initiate(connection());
|
||||
session.sendInitiate(connection());
|
||||
|
||||
return offer;
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ import org.jivesoftware.smackx.jingle.JingleManager;
|
|||
import org.jivesoftware.smackx.jingle.JingleTransportManager;
|
||||
import org.jivesoftware.smackx.jingle.component.JingleContent;
|
||||
import org.jivesoftware.smackx.jingle.component.JingleSession;
|
||||
import org.jivesoftware.smackx.jingle.component.JingleTransport;
|
||||
import org.jivesoftware.smackx.jingle.element.JingleContentElement;
|
||||
import org.jivesoftware.smackx.jingle.util.Role;
|
||||
|
||||
|
@ -109,9 +110,10 @@ public final class JingleFileTransferManager extends Manager implements JingleDe
|
|||
content.setDescription(offer);
|
||||
|
||||
JingleTransportManager transportManager = jingleManager.getBestAvailableTransportManager(to);
|
||||
content.setTransport(transportManager.createTransportForInitiator(content));
|
||||
JingleTransport<?> transport = transportManager.createTransportForInitiator(content);
|
||||
content.setTransport(transport);
|
||||
|
||||
session.initiate(connection());
|
||||
session.sendInitiate(connection());
|
||||
|
||||
return offer;
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ public class JingleIncomingFileOffer extends AbstractJingleFileOffer<RemoteFile>
|
|||
this.target = target;
|
||||
JingleSession session = getParent().getParent();
|
||||
if (session.getSessionState() == JingleSession.SessionState.pending) {
|
||||
session.accept(connection);
|
||||
session.sendAccept(connection);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue