make filters consistent for localhost.loki

This commit is contained in:
Jeff Becker 2021-07-02 08:27:44 -04:00
parent 30848165e7
commit 383312a74d
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -209,8 +209,8 @@ class Monitor:
paths = status["paths"] paths = status["paths"]
self.win.addstr("paths: {}".format(len(paths))) self.win.addstr("paths: {}".format(len(paths)))
for path in paths: for path in paths:
if self.path_filter('inbound'): if self.path_filter('localhost.loki'):
y_pos = self._render_path(y_pos, path, "inbound") y_pos = self._render_path(y_pos, path, "localhost.loki")
for session in (status["remoteSessions"] or []): for session in (status["remoteSessions"] or []):
for path in session["paths"]: for path in session["paths"]:
if self.path_filter(session["remoteIdentity"]): if self.path_filter(session["remoteIdentity"]):