| 91 | } |
| 92 | |
| 93 | void local_server::allow_from(const boost::asio::ip::address& _address) { |
| 94 | std::scoped_lock const lock{mtx_}; |
| 95 | if (auto itr = std::find(blocked_addresses_.begin(), blocked_addresses_.end(), _address); itr != blocked_addresses_.end()) { |
| 96 | blocked_addresses_.erase(itr); |
| 97 | } else { |
| 98 | VSOMEIP_WARNING_P << "address " << _address.to_string() << " not in blocked list"; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | port_t local_server::get_local_port() const { |
| 103 | return acceptor_->get_local_port(); |
no test coverage detected