Tunnel prevent message when Ctrl+C
This commit is contained in:
parent
758576532b
commit
0e96c7c615
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
try:
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
|
@ -24,6 +25,8 @@ if proxy:
|
||||||
|
|
||||||
else:
|
else:
|
||||||
call(['nc', host, port])
|
call(['nc', host, port])
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
# #!/usr/bin/env bash
|
# #!/usr/bin/env bash
|
||||||
|
|
Loading…
Reference in a new issue