+std::string mp::Origin::get_forward_address() const
+{
+ // return first component of address
+ // That's either first part of X-Forwarded component
+ size_t pos = m_address.find(' ');
+ if (pos != std::string::npos)
+ return m_address.substr(0, pos);
+ else
+ return m_address;
+}