mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-08-08 23:44:34 +02:00
Add a -v (and -vv) flag and decrease default message verbosity.
This commit is contained in:
5
main.py
5
main.py
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
import sys, os, re
|
||||
import options, client, iptables, server
|
||||
import helpers, options, client, server, iptables
|
||||
|
||||
|
||||
# list of:
|
||||
@ -50,6 +50,7 @@ sshuttle --server
|
||||
--
|
||||
l,listen= transproxy to this ip address and port number [default=0]
|
||||
r,remote= ssh hostname (and optional username) of remote sshuttle server
|
||||
v,verbose increase debug message verbosity
|
||||
noserver don't use a separate server process (mostly for debugging)
|
||||
server [internal use only]
|
||||
iptables [internal use only]
|
||||
@ -57,6 +58,8 @@ iptables [internal use only]
|
||||
o = options.Options('sshuttle', optspec)
|
||||
(opt, flags, extra) = o.parse(sys.argv[1:])
|
||||
|
||||
helpers.verbose = opt.verbose
|
||||
|
||||
if opt.server:
|
||||
sys.exit(server.main())
|
||||
elif opt.iptables:
|
||||
|
Reference in New Issue
Block a user