Skip to content
Snippets Groups Projects
Commit e66cfc66 authored by Bob Mottram's avatar Bob Mottram
Browse files

Add presentation port

parent f72f967c
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,7 @@ function configure_firewall_for_dlna {
return
fi
firewall_add DLNAP $DLNA_PRESENTATION_PORT tcp
firewall_add DLNA $DLNA_PORT udp
{ echo '<?xml version="1.0" standalone="no"?><!--*-nxml-*-->';
......@@ -100,6 +101,10 @@ function configure_firewall_for_dlna {
echo '<service-group>';
echo ' <name replace-wildcards="yes">%h DLNA</name>';
echo ' <service>';
echo ' <type>_dlna._tcp</type>';
echo " <port>$DLNA_PRESENTATION_PORT</port>";
echo ' </service>';
echo ' <service>';
echo ' <type>_dlna._udp</type>';
echo " <port>$DLNA_PORT</port>";
echo ' </service>';
......@@ -163,6 +168,7 @@ function remove_dlna {
rm /usr/bin/unmount-dlna
remove_completion_param install_dlna
firewall_remove $DLNA_PORT udp
firewall_remove $DLNA_PRESENTATION_PORT tcp
rm /etc/avahi/services/dlna.service
systemctl restart avahi-daemon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment