summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2010-05-02 00:52:06 -0400
committerAvery Pennarun <apenwarr@gmail.com>2010-05-02 00:52:06 -0400
commit915a96b0ec1f2862431d296e116d687bc79f0ba3 (patch)
tree30ca301bba0814f91287fa4d4581ff721982acdd /main.py
parentd435c41bdbf2ffd889cefe6710b8fc126304ef38 (diff)
We now have a server that works... some of the time.
There still seem to be some weird timing and/or closing-related bugs, since I can't load the eqldata project correctly unless I use --noserver.
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/main.py b/main.py
index 02fa00c..9115e63 100755
--- a/main.py
+++ b/main.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
import sys, os, re
-import options, client, iptables
+import options, client, iptables, server
# list of:
@@ -58,10 +58,7 @@ o = options.Options('sshuttle', optspec)
(opt, flags, extra) = o.parse(sys.argv[1:])
if opt.server:
- #o.fatal('server mode not implemented yet')
- os.dup2(2,1)
- os.execvp('hd', ['hd'])
- sys.exit(1)
+ sys.exit(server.main())
elif opt.iptables:
if len(extra) < 1:
o.fatal('at least one argument expected')