Skip to content

Commit a651d74

Browse files
committed
Remove unused code.
1 parent fe48c7c commit a651d74

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

sshuttle/__main__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sshuttle.helpers as helpers
55
import sshuttle.options as options
66
import sshuttle.client as client
7-
import sshuttle.server as server
87
import sshuttle.firewall as firewall
98
import sshuttle.hostwatch as hostwatch
109
from sshuttle.helpers import family_ip_tuple, log, Fatal
@@ -112,7 +111,6 @@ def parse_list(list):
112111

113112
optspec = """
114113
sshuttle [-l [ip:]port] [-r [username@]sshserver[:port]] <subnets...>
115-
sshuttle --server
116114
sshuttle --firewall <port> <subnets...>
117115
sshuttle --hostwatch
118116
--
@@ -150,12 +148,7 @@ def parse_list(list):
150148
helpers.verbose = opt.verbose
151149

152150
try:
153-
if opt.server:
154-
if len(extra) != 0:
155-
o.fatal('no arguments expected')
156-
server.latency_control = opt.latency_control
157-
sys.exit(server.main())
158-
elif opt.firewall:
151+
if opt.firewall:
159152
if len(extra) != 6:
160153
o.fatal('exactly six arguments expected')
161154
port, dnsport = int(extra[0]), int(extra[1])

sshuttle/sshuttle.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ entire subnet to the VPN.
147147
*pidfilename*. The default is `sshuttle.pid` in the
148148
current directory.
149149

150-
--server
151-
: (internal use only) run the sshuttle server on
152-
stdin/stdout. This is what the client runs on
153-
the remote end.
154-
155150
--firewall
156151
: (internal use only) run the firewall manager. This is
157152
the only part of sshuttle that must run as root. If

0 commit comments

Comments
 (0)