feature: resolverDNS
possibilità di scelta di inserire IP per DNS
This commit is contained in:
@@ -5698,13 +5698,46 @@ msgid "By deactivating the DNS check, you have activated a reminder that it will
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707405"
|
||||
msgid "Activate DNS"
|
||||
msgid "If you disable 'Enable DNS' you will use the dns set in your modem or device."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707412"
|
||||
msgid "If you want to insert YOUR DNS that do not appear in the list, run in order:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707413"
|
||||
msgid "'Enable DNS' -> OFF - 'Enter your DNS' -> ON"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707414"
|
||||
msgid "Note: If 'Activate DNS' and 'Insert your DNS' are both ON, the former will prevail."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707415"
|
||||
msgid "For any change to the DNS you MUST restart KODI!"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707406"
|
||||
msgid "Choose the DNS provider"
|
||||
msgid "Activate DNS"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707407"
|
||||
msgid "Choose the DNS provider"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707408"
|
||||
msgid "Choose your preferred DNS provider and restart KODI!"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707409"
|
||||
msgid "Insert your DNS"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#707410"
|
||||
msgid "DNS1"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#7074011"
|
||||
msgid "DNS2"
|
||||
msgstr ""
|
||||
# DNS end
|
||||
|
||||
@@ -5685,6 +5685,7 @@ msgctxt "#70740"
|
||||
msgid "Your system does not have a web browser, so here's the short link you can open in another device:\n%s"
|
||||
msgstr "Il tuo sistema non ha un browser, quindi ecco un link corto che puoi aprire in un altro dispositivo\n%s"
|
||||
|
||||
# DNS start
|
||||
msgctxt "#707401"
|
||||
msgid "Enable Check DNS"
|
||||
msgstr "Abilita Check DNS"
|
||||
@@ -5702,13 +5703,46 @@ msgid "By deactivating the DNS check, you have activated a reminder that it will
|
||||
msgstr "Disattivando il check DNS, hai attivato un promemoria\nche apparirà in alto a dx"
|
||||
|
||||
msgctxt "#707405"
|
||||
msgid "If you disable 'Enable DNS' you will use the dns set in your modem or device."
|
||||
msgstr "Se disattivi Attiva DNS userai i dns impostati nel modem o nel dispositivo in uso."
|
||||
|
||||
msgctxt "#707412"
|
||||
msgid "If you want to insert YOUR DNS that do not appear in the list, run in order:"
|
||||
msgstr "Se vuoi inserire TUOI DNS che non compaiono nell'elenco, esegui in ordine:"
|
||||
|
||||
msgctxt "#707413"
|
||||
msgid "'Enable DNS' -> OFF - 'Enter your DNS' -> ON"
|
||||
msgstr "Attiva DNS -> OFF - Inserisci i tuoi DNS -> ON"
|
||||
|
||||
msgctxt "#707414"
|
||||
msgid "Note: If 'Activate DNS' and 'Insert your DNS' are both ON, the former will prevail."
|
||||
msgstr "N.B: Se Attiva DNS e Inserisci i tuoi DNS sono entrambi a ON, prevarranno i primi."
|
||||
|
||||
msgctxt "#707415"
|
||||
msgid "For any change to the DNS you MUST restart KODI!"
|
||||
msgstr "Per ogni modifica sui DNS DEVI riavviare KODI!"
|
||||
|
||||
msgctxt "#707406"
|
||||
msgid "Activate DNS"
|
||||
msgstr "Attiva DNS"
|
||||
|
||||
msgctxt "#707406"
|
||||
msgctxt "#707407"
|
||||
msgid "Choose the DNS provider"
|
||||
msgstr "Scegli il fornitore DNS"
|
||||
|
||||
msgctxt "#707407"
|
||||
msgctxt "#707408"
|
||||
msgid "Choose your preferred DNS provider and restart KODI!"
|
||||
msgstr "Scegli il tuo provider per i DNS che preferisci e riavvia KODI!"
|
||||
msgstr "Scegli il tuo provider per i DNS che preferisci."
|
||||
|
||||
msgctxt "#707409"
|
||||
msgid "Insert your DNS"
|
||||
msgstr "Inserisci i tuoi DNS"
|
||||
|
||||
msgctxt "#707410"
|
||||
msgid "DNS1"
|
||||
msgstr "DNS1"
|
||||
|
||||
msgctxt "#707411"
|
||||
msgid "DNS2"
|
||||
msgstr "DNS2"
|
||||
# DNS end
|
||||
|
||||
@@ -123,13 +123,24 @@
|
||||
values="[COLOR white]white[/COLOR]|[COLOR cyan]cyan[/COLOR]|[COLOR deepskyblue]deepskyblue[/COLOR]|[COLOR firebrick]firebrick[/COLOR]|[COLOR gold]gold[/COLOR]|[COLOR goldenrod]goldenrod[/COLOR]|[COLOR hotpink]hotpink[/COLOR]|[COLOR limegreen]limegreen[/COLOR]|[COLOR orange]orange[/COLOR]|[COLOR orchid]orchid[/COLOR]|[COLOR red]red[/COLOR]|[COLOR salmon]salmon[/COLOR]|[COLOR yellow]yellow[/COLOR]"
|
||||
default="white" visible="eq(-17,true)+eq(-18,true)"/> -->
|
||||
</category>
|
||||
<!-- Scelgo i DNS da utilizzare-->
|
||||
<!-- Scelgo i DNS da utilizzare -->
|
||||
<category label="DNS">
|
||||
<setting id="checkdns" type="bool" label="707401" default="true" visible="true"/>
|
||||
<setting id="resolver_dns" type="bool" label="707405" default="True"/>
|
||||
<setting id="resolver_dns_service" type="enum" values="Cloudflare|Google|OpenDns Home ip(v4)|OpenDns Family Shield ip(v4)|OpenDns ip(v6)" label="707406" default="1" visible="eq(-1,true)" option="hidden" enable="eq(-1,true)"/>
|
||||
<setting label="707407" visible="eq(-2,true)" option="hidden" enable="eq(-2,true)"/>
|
||||
</category>
|
||||
<setting id="checkdns" type="bool" label="707401" default="true" visible="true"/>
|
||||
<setting type="lsep"/>
|
||||
<setting label="707415" visible="true" enable="true"/>
|
||||
<setting id="resolver_dns" type="bool" label="707406" default="true" enable="true" visible="true"/>
|
||||
<setting id="resolver_dns_service" type="enum" values="Cloudflare|Google|OpenDns Home ip(v4)|OpenDns Family Shield ip(v4)|OpenDns ip(v6)" label="707407" default="0" visible="eq(-1,true)" enable="eq(-1,true)"/>
|
||||
<setting label="707408" visible="eq(-2,true)" enable="eq(-2,true)"/>
|
||||
|
||||
<setting id="resolver_dns_custom" type="bool" label="707409" default="false" enable="eq(-3,false)" visible="true"/>
|
||||
<setting id="resolver_dns_custom1" type="ipaddress" visible="eq(-1,true)" label="707410" default="1.1.1.1"/>
|
||||
<setting id="resolver_dns_custom2" type="ipaddress" visible="eq(-2,true)" label="707411" default="1.0.0.1"/>
|
||||
|
||||
<setting label="707405" visible="true" enable="true"/>
|
||||
<setting label="707412" visible="true" enable="true"/>
|
||||
<setting label="707413" visible="true" enable="true"/>
|
||||
<setting label="707414" visible="true" enable="true"/>
|
||||
</category>
|
||||
<!-- Other -->
|
||||
<category label="70149">
|
||||
<setting label="70150" type="lsep"/>
|
||||
|
||||
@@ -39,6 +39,7 @@ if active_dns == True:
|
||||
res.nameservers = ['1.1.1.1', '2606:4700:4700::1111',
|
||||
'1.0.0.1', '2606:4700:4700::1001']
|
||||
|
||||
if config.get_setting('nameservers_dns_custom') and not config.get_setting('resolver_dns'):
|
||||
res.nameservers = [config.get_setting('resolver_dns_custom1'),config.get_setting('resolver_dns_custom2')]
|
||||
|
||||
override_system_resolver(res)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user