go2tv: allow more ports through the firewall

This commit is contained in:
Colin 2024-01-22 03:50:04 +00:00
parent 829460a076
commit f8440e3811

View File

@ -34,5 +34,7 @@ in
{
# for serving local files
# see: go2tv/soapcalls/utils/iptools.go
networking.firewall.allowedTCPPorts = lib.mkIf cfg.enabled [ 3500 ];
# go2tv tries port 3500, and then walks up from there port-by-port until it finds a free one.
# it tries 1000 ports, but hopefully we won't need so many.
networking.firewall.allowedTCPPorts = lib.mkIf cfg.enabled (lib.range 3500 3519);
}