X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tungre.cpp;h=b9ad8f143b743b9e021422fbadf3efdf00001003;hb=9e8a28e92f8e092a2409ddad770b3dbe088a4fe9;hp=89339bba2455aa9ab4616f99f18ce0736e3f6ea0;hpb=47f75fc7569e504a94a601cb3a81793400b134ac;p=greproxy diff --git a/tungre.cpp b/tungre.cpp index 89339bb..b9ad8f1 100644 --- a/tungre.cpp +++ b/tungre.cpp @@ -8,6 +8,7 @@ #include "greprotocol.h" #include "reorderer.h" #include "tunprotocol.h" +#include "rsdecoder.h" using namespace std; @@ -28,6 +29,7 @@ int main(int argc, char **argv) TUNProtocol tun("tungre"); Reorderer tun_reorderer(&tun); + RSDecoder tun_decoder(&tun_reorderer); fd_set fds; FD_ZERO(&fds); @@ -41,7 +43,7 @@ int main(int argc, char **argv) } if (FD_ISSET(gre.fd(), &fds)) { - gre.read_packet(&tun_reorderer); + gre.read_packet(&tun_decoder); } if (FD_ISSET(tun.fd(), &fds)) { tun.read_packet(&gre);