firewall: Use service files for showing port forwarding info

- Start showing port ranges properly.

- Fixes issue with Coturn TURN relay ports not being shown.

Closes: #1851.

Tests:

- Visit each of affected apps and see the port forwarding information. The
information is same as before.

- HTTP and HTTPS ports are not shown.

- Coturn app shows additional port ranges for TURN relay ports.

- Shadowsocks app does not show port forwarding information as it is internal
only.

- Visit one of the apps not effected by the patch. There is no section related
to port forwarding.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2020-09-04 16:31:52 +03:00
1 parent c218f3845f
commit 4aa8e6da09
28 files changed
+32 -93

No files matched your search

-2
View File
@@ -32,8 +32,6 @@ _description = [
'using such connections.')
]
port_forwarding_info = [('TCP', 22)]
app = None