Skip to content

Commit

Permalink
fix issue #2: detect remote an dynamic port forwarding
Browse files Browse the repository at this point in the history
Not just local port forwarding.
  • Loading branch information
nojhan committed Aug 8, 2022
1 parent 5bfa5ea commit d517abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnelmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def __init__(self):
# only a list of connections OR autossh processes
# self.update()

self.re_forwarding = re.compile(r"-L\s*(\d+):(.*):(\d+)")
self.re_forwarding = re.compile(r"-\w*[LRD]\w*\s*(\d+):(.*):(\d+)")

self.header = 'TYPE\tSSH_PID\tIN_PORT\tVIA_HOST\tTARGET_HOST\tOUT_PORT'

Expand Down

0 comments on commit d517abb

Please sign in to comment.