fix issue #2: detect remote an dynamic port forwarding

Not just local port forwarding.
This commit is contained in:
Johann Dreo 2022-08-08 09:30:52 +02:00
commit d517abb6e4

View file

@ -146,7 +146,7 @@ class TunnelsParser:
# 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'