diff options
author | Christian Pointner <equinox@anytun.org> | 2016-07-03 01:30:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2016-07-03 01:31:22 +0200 |
commit | 16abad80ef9808f2f5bb8420d2afab2111eec502 (patch) | |
tree | 1b5c9763d134ffda7eb5ee5b892038a1de881b6d /src/anytun.cpp | |
parent | std::auto_ptr is deprecated sinc C++0x use boost:scoped_ptr and boost::shared... (diff) |
fixed boost::bind problem with resolver on GCC-6
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index 909313d..36ca0aa 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -113,7 +113,7 @@ void createConnection(const PacketSourceEndpoint& remote_end, window_size_t seqS #endif } -void createConnectionResolver(PacketSourceResolverIt& it, window_size_t seqSize, mux_t mux) +void createConnectionResolver(PacketSourceResolverIt it, window_size_t seqSize, mux_t mux) { createConnection(*it, seqSize, mux); } @@ -434,7 +434,7 @@ int main(int argc, char* argv[]) PacketSource* src = new UDPPacketSource(gOpt.getLocalAddr(), gOpt.getLocalPort()); if(gOpt.getRemoteAddr() != "") { - //gResolver.resolveUdp(gOpt.getRemoteAddr(), gOpt.getRemotePort(), boost::bind(createConnectionResolver, _1, gOpt.getSeqWindowSize(), gOpt.getMux()), boost::bind(createConnectionError, _1), gOpt.getResolvAddrType()); + gResolver.resolveUdp(gOpt.getRemoteAddr(), gOpt.getRemotePort(), boost::bind(createConnectionResolver, _1, gOpt.getSeqWindowSize(), gOpt.getMux()), boost::bind(createConnectionError, _1), gOpt.getResolvAddrType()); } HostList connect_to = gOpt.getRemoteSyncHosts(); |