diff options
Diffstat (limited to 'remoting/protocol/pepper_session_manager.cc')
-rw-r--r-- | remoting/protocol/pepper_session_manager.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/remoting/protocol/pepper_session_manager.cc b/remoting/protocol/pepper_session_manager.cc index a9e7471..877b650 100644 --- a/remoting/protocol/pepper_session_manager.cc +++ b/remoting/protocol/pepper_session_manager.cc @@ -34,11 +34,15 @@ PepperSessionManager::~PepperSessionManager() { void PepperSessionManager::Init( SignalStrategy* signal_strategy, SessionManager::Listener* listener, - bool allow_nat_traversal) { + const NetworkSettings& network_settings) { listener_ = listener; signal_strategy_ = signal_strategy; iq_sender_.reset(new IqSender(signal_strategy_)); - allow_nat_traversal_ = allow_nat_traversal; + allow_nat_traversal_ = network_settings.allow_nat_traversal; + + // Limiting the port range is not supported yet. + DCHECK(network_settings.max_port == 0 && + network_settings.min_port == 0); signal_strategy_->AddListener(this); |