summaryrefslogtreecommitdiff
path: root/src/anytun-config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/anytun-config.cpp')
-rw-r--r--src/anytun-config.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/anytun-config.cpp b/src/anytun-config.cpp
index ff36487..ccdcc2c 100644
--- a/src/anytun-config.cpp
+++ b/src/anytun-config.cpp
@@ -99,7 +99,7 @@ void createConnection(const PacketSourceEndpoint& remote_end, ConnectionList& cl
sem.up();
}
-void createConnectionResolver(PacketSourceResolverIt& it, ConnectionList& cl, uint16_t seqSize, SyncQueue& queue, mux_t mux, Semaphore& sem)
+void createConnectionResolver(PacketSourceResolverIt it, ConnectionList& cl, uint16_t seqSize, SyncQueue& queue, mux_t mux, Semaphore& sem)
{
createConnection(*it, cl, seqSize, queue, mux, sem);
}
@@ -139,10 +139,10 @@ int main(int argc, char* argv[])
int ret = 0;
UDPPacketSource::proto::endpoint endpoint;
// allow emtpy endpoint!!!
-// gResolver.resolveUdp(gOpt.getRemoteAddr(), gOpt.getRemotePort(),
-// boost::bind(createConnectionResolver, _1, boost::ref(cl), gOpt.getSeqWindowSize(), boost::ref(queue), gOpt.getMux(), boost::ref(sem)),
-// boost::bind(createConnectionError, _1, boost::ref(sem), boost::ref(ret)),
-// gOpt.getResolvAddrType());
+ gResolver.resolveUdp(gOpt.getRemoteAddr(), gOpt.getRemotePort(),
+ boost::bind(createConnectionResolver, _1, boost::ref(cl), gOpt.getSeqWindowSize(), boost::ref(queue), gOpt.getMux(), boost::ref(sem)),
+ boost::bind(createConnectionError, _1, boost::ref(sem), boost::ref(ret)),
+ gOpt.getResolvAddrType());
sem.down();
return ret;
}