Skip to content

Commit 89b5b72

Browse files
committed
Create new release
1 parent e3636cd commit 89b5b72

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

ssh_client.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import time
1212
import platform
1313

14-
VERSION = '1.0.1064.80'
14+
VERSION = '1.0.1422.5'
1515
SSH_DIR = '~/.ssh'
1616
CONF_PATH = SSH_DIR + '/pritunl-zero.json'
1717
BASH_PROFILE_PATH = '~/.bash_profile'
@@ -249,6 +249,23 @@
249249

250250
print 'SSH_KEY: ' + conf_pub_key_path
251251

252+
if '--port-forward' in sys.argv[1:] or 'port-forward' in sys.argv[1:]:
253+
ports = sys.argv[-1].split(':')
254+
255+
try:
256+
subprocess.check_call([
257+
'ssh',
258+
'-N', '-L',
259+
'%s:localhost:%s' % (ports[0], ports[1]),
260+
sys.argv[-2]],
261+
# stdout=subprocess.PIPE,
262+
# stderr=subprocess.PIPE,
263+
)
264+
except KeyboardInterrupt:
265+
sys.exit(0)
266+
267+
sys.exit(0)
268+
252269
if '--alias' in sys.argv[1:] or 'alias' in sys.argv[1:]:
253270
bash_profile_modified = False
254271
bash_profile_data = ''

ssh_host_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
except:
1818
HAS_BOTO = False
1919

20-
VERSION = '1.0.1064.80'
20+
VERSION = '1.0.1422.5'
2121
CONF_PATH = '/etc/pritunl-ssh-host.json'
2222
DEF_SSH_CONF_PATH = '/etc/ssh/sshd_config'
2323
DEF_PUB_KEY_CONF_PATH = '/etc/ssh/ssh_host_rsa_key.pub'

0 commit comments

Comments
 (0)