diff --git a/p2p/base/tcp_port.cc b/p2p/base/tcp_port.cc index f98322a9d9..07ca30007d 100644 --- a/p2p/base/tcp_port.cc +++ b/p2p/base/tcp_port.cc @@ -97,7 +97,6 @@ TCPPort::TCPPort(rtc::Thread* thread, max_port, username, password), - incoming_only_(false), allow_listen_(allow_listen), socket_(NULL), error_(0) { @@ -133,10 +132,6 @@ Connection* TCPPort::CreateConnection(const Candidate& address, if (origin == ORIGIN_OTHER_PORT) return NULL; - // Check if we are allowed to make outgoing TCP connections - if (incoming_only_ && (origin == ORIGIN_MESSAGE)) - return NULL; - // We don't know how to act as an ssl server yet if ((address.protocol() == SSLTCP_PROTOCOL_NAME) && (origin == ORIGIN_THIS_PORT)) { diff --git a/p2p/base/tcp_port.h b/p2p/base/tcp_port.h index 67716f73b2..60c2d0442e 100644 --- a/p2p/base/tcp_port.h +++ b/p2p/base/tcp_port.h @@ -104,8 +104,6 @@ class TCPPort : public Port { void OnAddressReady(rtc::AsyncPacketSocket* socket, const rtc::SocketAddress& address); - // TODO(?): Is this still needed? - bool incoming_only_; bool allow_listen_; rtc::AsyncPacketSocket* socket_; int error_;