Tunnel prevent message when Ctrl+C

This commit is contained in:
Geoffrey Frogeye 2016-02-25 17:17:03 +01:00
parent 758576532b
commit 0e96c7c615

View file

@ -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