diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-05-02 00:52:06 -0400 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-05-02 00:52:06 -0400 |
commit | 915a96b0ec1f2862431d296e116d687bc79f0ba3 (patch) | |
tree | 30ca301bba0814f91287fa4d4581ff721982acdd /main.py | |
parent | d435c41bdbf2ffd889cefe6710b8fc126304ef38 (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-x | main.py | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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') |