summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-01-11 12:39:50 (GMT)
committerSwift Review <review@swift.im>2015-02-11 09:35:33 (GMT)
commit9281a35fb912657f98ff0918ed683b2ef6071b45 (patch)
tree9a9ac8a5e9cf9f2d3680fbc2323e643f03bfe5d8 /Swiften/FileTransfer/OutgoingJingleFileTransfer.cpp
parent779f0d57bc9d90300aad0b1386dc937612ac35f4 (diff)
downloadswift-9281a35fb912657f98ff0918ed683b2ef6071b45.zip
swift-9281a35fb912657f98ff0918ed683b2ef6071b45.tar.bz2
Restrict generated candidates and selected candidates to those allowed
by supplied FileTransferOptions. Test-Information: Automatically tested all FileTransferOption combinations and verified it generates only allowed candidates. Change-Id: I0b3ce983a3f230a4c2c3940f5d928fd74d6012b6
Diffstat (limited to 'Swiften/FileTransfer/OutgoingJingleFileTransfer.cpp')
-rw-r--r--Swiften/FileTransfer/OutgoingJingleFileTransfer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/FileTransfer/OutgoingJingleFileTransfer.cpp b/Swiften/FileTransfer/OutgoingJingleFileTransfer.cpp
index 369af8f..4183af7 100644
--- a/Swiften/FileTransfer/OutgoingJingleFileTransfer.cpp
+++ b/Swiften/FileTransfer/OutgoingJingleFileTransfer.cpp
@@ -5,7 +5,7 @@
*/
/*
- * Copyright (C) 2013-2014 Isode Limited.
+ * Copyright (C) 2013-2015 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -79,7 +79,7 @@ void OutgoingJingleFileTransfer::start() {
SWIFT_LOG(debug) << std::endl;
if (state != Initial) { SWIFT_LOG(warning) << "Incorrect state" << std::endl; return; }
- setTransporter(transporterFactory->createInitiatorTransporter(getInitiator(), getResponder()));
+ setTransporter(transporterFactory->createInitiatorTransporter(getInitiator(), getResponder(), options));
setState(GeneratingInitialLocalCandidates);
transporter->startGeneratingLocalCandidates();
}