summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index 46cdead..eb695cf 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -390,7 +390,8 @@ int main(int argc, char* argv[])
createConnection(endpoint,gOpt.getSeqWindowSize(), gOpt.getMux());
}
- RouteList routes = gOpt.getRoutes();
+#ifndef NO_ROUTING
+ RouteList routes = gOpt.getRoutes();
RouteList::const_iterator rit;
for(rit = routes.begin(); rit != routes.end(); ++rit)
{
@@ -408,6 +409,7 @@ int main(int argc, char* argv[])
std::cout << " to set them)"<< std::endl;
return -1;
}
+#endif
#ifndef NO_DAEMON
if(gOpt.getChroot())
chrootAndDrop(gOpt.getChrootDir(), gOpt.getUsername());