summaryrefslogtreecommitdiff
path: root/src/packetSource.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-01-13 09:56:01 +0000
committerChristian Pointner <equinox@anytun.org>2010-01-13 09:56:01 +0000
commit621f2b3fa3b6484d7ce216a18995604ca81873d1 (patch)
tree3aa185c5f45c744ba76b80336d5a54b16e39a7c2 /src/packetSource.cpp
parentupdated changelog (diff)
added multi socket to SyncServer (better of IPv4 and IPv6)
Diffstat (limited to 'src/packetSource.cpp')
-rw-r--r--src/packetSource.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/packetSource.cpp b/src/packetSource.cpp
index fa4abd0..06a7500 100644
--- a/src/packetSource.cpp
+++ b/src/packetSource.cpp
@@ -79,10 +79,8 @@ void UDPPacketSource::onResolve(PacketSourceResolverIt& it)
sock.sock_->open(e.protocol());
#ifndef _MSC_VER
- if(e.protocol() == proto::v6()) {
- boost::asio::ip::v6_only option(true);
- sock.sock_->set_option(option);
- }
+ if(e.protocol() == proto::v6())
+ sock.sock_->set_option(boost::asio::ip::v6_only(true));
#endif
sock.sock_->bind(e);
sockets_.push_back(sock);