summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-18 16:26:26 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-18 16:29:31 (GMT)
commit7d0e9c3d963ffcb3f7d6d313dfa55466beb742b9 (patch)
treec136ba17b4fa37e5954e9229cbdcfbeafce0347f /Swiften/Network/HostAddress.cpp
parent7147be63a03f1e133f83bc057be98cf9f2631733 (diff)
downloadswift-contrib-7d0e9c3d963ffcb3f7d6d313dfa55466beb742b9.zip
swift-contrib-7d0e9c3d963ffcb3f7d6d313dfa55466beb742b9.tar.bz2
Small tweaks to the previous patch.
Diffstat (limited to 'Swiften/Network/HostAddress.cpp')
-rw-r--r--Swiften/Network/HostAddress.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Network/HostAddress.cpp b/Swiften/Network/HostAddress.cpp
index 7acd407..2ca1414 100644
--- a/Swiften/Network/HostAddress.cpp
+++ b/Swiften/Network/HostAddress.cpp
@@ -57,4 +57,8 @@ bool HostAddress::isValid() const {
return !(address_.is_v4() && address_.to_v4().to_ulong() == 0);
}
+boost::asio::ip::address HostAddress::getRawAddress() const {
+ return address_;
+}
+
}