diff options
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index 4bb6e14..a2407e2 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -71,6 +71,7 @@ #ifndef ANYTUN_NOSYNC #include "syncServer.h" #include "syncClient.h" +#include "syncOnConnect.hpp" #endif #include "threadParam.h" @@ -217,6 +218,7 @@ void syncListener(SyncQueue * queue ) { asio::io_service io_service; SyncServer server(io_service,asio::ip::tcp::endpoint(asio::ip::tcp::v4(), gOpt.getLocalSyncPort())); + server.onConnect=boost::bind(syncOnConnect,_1); queue->setSyncServerPtr(&server); io_service.run(); } |