1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Add plex to bypass rebind

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-06-11 22:14:56 +02:00
parent 965a08057b
commit ba80b45579

View file

@ -16,12 +16,15 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
EOF
fi
fi
uci -q batch <<-EOF >/dev/null
set dhcp.@dnsmasq[-1].noresolv=1
set dhcp.@dnsmasq[-1].nonegcache=1
del dhcp.@dnsmasq[-1].interface
commit dhcp
EOF
if [ "$(uci -q get dhcp.@dnsmasq[0].rebind_domain)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set dhcp.@dnsmasq[-1].noresolv=1
set dhcp.@dnsmasq[-1].nonegcache=1
del dhcp.@dnsmasq[-1].interface
add_list dhcp.@dnsmasq[-1].rebind_domain="plex.direct"
commit dhcp
EOF
fi
#uci -q batch <<-EOF >/dev/null
# set unbound.@unbound[-1].add_local_fqdn=0
# set unbound.@unbound[-1].localservice=1