|
@@ -98,36 +98,37 @@ end
|
|
o.remove = function(self, section, value)
|
|
o.remove = function(self, section, value)
|
|
nixio.fs.writefile(blockconf, "")
|
|
nixio.fs.writefile(blockconf, "")
|
|
end
|
|
end
|
|
-s:tab("netflix", translate("Netflix Domain List"))
|
|
|
|
-local netflixconf = "/etc/ssr/netflix.list"
|
|
|
|
-o = s:taboption("netflix", TextValue, "netflixconf")
|
|
|
|
|
|
+
|
|
|
|
+s:tab("denydomain", translate("Deny Domain List"))
|
|
|
|
+local denydomainconf = "/etc/ssr/deny.list"
|
|
|
|
+o = s:taboption("denydomain", TextValue, "denydomainconf")
|
|
o.rows = 13
|
|
o.rows = 13
|
|
o.wrap = "off"
|
|
o.wrap = "off"
|
|
o.rmempty = true
|
|
o.rmempty = true
|
|
o.cfgvalue = function(self, section)
|
|
o.cfgvalue = function(self, section)
|
|
- return nixio.fs.readfile(netflixconf) or " "
|
|
|
|
|
|
+ return nixio.fs.readfile(denydomainconf) or " "
|
|
end
|
|
end
|
|
o.write = function(self, section, value)
|
|
o.write = function(self, section, value)
|
|
- nixio.fs.writefile(netflixconf, value:gsub("\r\n", "\n"))
|
|
|
|
|
|
+ nixio.fs.writefile(denydomainconf, value:gsub("\r\n", "\n"))
|
|
end
|
|
end
|
|
o.remove = function(self, section, value)
|
|
o.remove = function(self, section, value)
|
|
- nixio.fs.writefile(netflixconf, "")
|
|
|
|
|
|
+ nixio.fs.writefile(denydomainconf, "")
|
|
end
|
|
end
|
|
|
|
|
|
-s:tab("netflixip", translate("Netflix IP List"))
|
|
|
|
-local netflixipconf = "/etc/ssr/netflixip.list"
|
|
|
|
-o = s:taboption("netflixip", TextValue, "netflixipconf")
|
|
|
|
|
|
+s:tab("netflix", translate("Netflix Domain List"))
|
|
|
|
+local netflixconf = "/etc/ssr/netflix.list"
|
|
|
|
+o = s:taboption("netflix", TextValue, "netflixconf")
|
|
o.rows = 13
|
|
o.rows = 13
|
|
o.wrap = "off"
|
|
o.wrap = "off"
|
|
o.rmempty = true
|
|
o.rmempty = true
|
|
o.cfgvalue = function(self, section)
|
|
o.cfgvalue = function(self, section)
|
|
- return nixio.fs.readfile(netflixipconf) or " "
|
|
|
|
|
|
+ return nixio.fs.readfile(netflixconf) or " "
|
|
end
|
|
end
|
|
o.write = function(self, section, value)
|
|
o.write = function(self, section, value)
|
|
- nixio.fs.writefile(netflixipconf, value:gsub("\r\n", "\n"))
|
|
|
|
|
|
+ nixio.fs.writefile(netflixconf, value:gsub("\r\n", "\n"))
|
|
end
|
|
end
|
|
o.remove = function(self, section, value)
|
|
o.remove = function(self, section, value)
|
|
- nixio.fs.writefile(netflixipconf, "")
|
|
|
|
|
|
+ nixio.fs.writefile(netflixconf, "")
|
|
end
|
|
end
|
|
|
|
|
|
return m
|
|
return m
|