Fixed auto-boot not starting without boot section
This commit is contained in:
parent
d0a682f1a3
commit
1503108366
@ -103,8 +103,8 @@ x-device-os, x-ver-os, x-device-model, x-hwid). Выключить, не уда
|
|||||||
BOOT — whitelisted seed-ноды для скачивания подписок: в форме vless-ссылки по одной на
|
BOOT — whitelisted seed-ноды для скачивания подписок: в форме vless-ссылки по одной на
|
||||||
строку (`BOOT_LINKS` в `common.env`; старые `BOOT_SERVER`/`_PBK`/… читаются как одна
|
строку (`BOOT_LINKS` в `common.env`; старые `BOOT_SERVER`/`_PBK`/… читаются как одна
|
||||||
нода). Из них собираются `seed`, `seed2`, …, группа `BOOT` (fallback) берёт первую живую.
|
нода). Из них собираются `seed`, `seed2`, …, группа `BOOT` (fallback) берёт первую живую.
|
||||||
`BOOT-AUTO` — то, через что подписки качаются по умолчанию: `BOOT`, если ни одна seed не
|
`BOOT-AUTO` — то, через что подписки качаются по умолчанию (и без BOOT тоже): `BOOT`, если
|
||||||
отвечает — ноды уже скачанных подписок (mihomo хранит их в
|
ни одна seed не отвечает или BOOT не задан — ноды уже скачанных подписок (mihomo хранит их в
|
||||||
`/etc/nikki/run/providers/<имя>.yaml` и загружает при старте), в последнюю очередь напрямую.
|
`/etc/nikki/run/providers/<имя>.yaml` и загружает при старте), в последнюю очередь напрямую.
|
||||||
|
|
||||||
Пуши (Apple `*.push.apple.com` и подсети 17.x, Google FCM `mtalk.google.com`, порты
|
Пуши (Apple `*.push.apple.com` и подсети 17.x, Google FCM `mtalk.google.com`, порты
|
||||||
|
|||||||
@ -630,7 +630,8 @@ return view.extend({
|
|||||||
dom.content(this.settingsBox, [
|
dom.content(this.settingsBox, [
|
||||||
E('h3', 'Настройка'),
|
E('h3', 'Настройка'),
|
||||||
field('BOOT', f.boot, 'vless-ссылки seed-нод, по одной на строку: группа BOOT берёт первую живую, ' +
|
field('BOOT', f.boot, 'vless-ссылки seed-нод, по одной на строку: группа BOOT берёт первую живую, ' +
|
||||||
'через неё качаются подписки (BOOT-AUTO: BOOT, иначе сохранённые ноды подписок, иначе напрямую); пусто — без BOOT'),
|
'через неё качаются подписки; пусто — без BOOT. Подписки по умолчанию качаются через BOOT-AUTO: ' +
|
||||||
|
'BOOT, иначе ноды уже скачанных подписок (FOREIGN), иначе напрямую'),
|
||||||
field('Подписки', [ subList, E('button', {
|
field('Подписки', [ subList, E('button', {
|
||||||
'class': 'btn cbi-button cbi-button-add',
|
'class': 'btn cbi-button cbi-button-add',
|
||||||
'click': function() { addSub({}); update(); }
|
'click': function() { addSub({}); update(); }
|
||||||
|
|||||||
@ -190,7 +190,7 @@ m_config_get() {
|
|||||||
K=$(echo "$id" | tr 'a-z' 'A-Z')
|
K=$(echo "$id" | tr 'a-z' 'A-Z')
|
||||||
eval "p=\${SUB_${K}_PROXY:-\${SUB${i}_PROXY:-}} h=\${SUB_${K}_HWID:-\${SUB${i}_HWID:-0}}
|
eval "p=\${SUB_${K}_PROXY:-\${SUB${i}_PROXY:-}} h=\${SUB_${K}_HWID:-\${SUB${i}_HWID:-0}}
|
||||||
off=\${SUB_${K}_DISABLED:-\${SUB${i}_DISABLED:-0}}"
|
off=\${SUB_${K}_DISABLED:-\${SUB${i}_DISABLED:-0}}"
|
||||||
[ -n "$p" ] || { [ "${BOOT:-0}" = 1 ] && p=BOOT-AUTO || p=DIRECT; }
|
[ -n "$p" ] || p=BOOT-AUTO
|
||||||
json_add_object ""
|
json_add_object ""
|
||||||
json_add_string id "$id"
|
json_add_string id "$id"
|
||||||
json_add_string url "$w"
|
json_add_string url "$w"
|
||||||
|
|||||||
@ -234,7 +234,7 @@ check_vars() {
|
|||||||
fi
|
fi
|
||||||
_on=1
|
_on=1
|
||||||
case "$(sub_get "$i" "$_id" PROXY)" in
|
case "$(sub_get "$i" "$_id" PROXY)" in
|
||||||
BOOT | BOOT-AUTO) [ "$BOOT" = 1 ] || die "subscription $_id: PROXY=BOOT but BOOT=0" ;;
|
BOOT) [ "$BOOT" = 1 ] || die "subscription $_id: PROXY=BOOT but BOOT=0" ;;
|
||||||
esac
|
esac
|
||||||
if [ "$(sub_get "$i" "$_id" HWID)" = 1 ]; then
|
if [ "$(sub_get "$i" "$_id" HWID)" = 1 ]; then
|
||||||
for v in HWID_OS HWID_OS_VER HWID_MODEL HWID_ID; do
|
for v in HWID_OS HWID_OS_VER HWID_MODEL HWID_ID; do
|
||||||
@ -261,7 +261,7 @@ yq() { printf '%s' "$1" | sed 's/\\/\\\\/g; s/"/\\"/g'; }
|
|||||||
|
|
||||||
# per-subscription variables for the .each templates: sub_vars <index> <id> <url>
|
# per-subscription variables for the .each templates: sub_vars <index> <id> <url>
|
||||||
# (ID = id in upper case; the old SUB<index>_* keys still work)
|
# (ID = id in upper case; the old SUB<index>_* keys still work)
|
||||||
# SUB_<ID>_PROXY BOOT-AUTO (default with BOOT=1) | BOOT | DIRECT | FOREIGN | any proxy/group | none
|
# SUB_<ID>_PROXY BOOT-AUTO (default) | BOOT | DIRECT | FOREIGN | any proxy/group | none
|
||||||
# SUB_<ID>_UA User-Agent (default mihomo, with HWID: HWID_UA)
|
# SUB_<ID>_UA User-Agent (default mihomo, with HWID: HWID_UA)
|
||||||
# SUB_<ID>_HWID=1 send x-device-os / x-ver-os / x-device-model / x-hwid from HWID_*
|
# SUB_<ID>_HWID=1 send x-device-os / x-ver-os / x-device-model / x-hwid from HWID_*
|
||||||
# SUB_<ID>_HEADERS extra headers: "key=value; key2=value 2"
|
# SUB_<ID>_HEADERS extra headers: "key=value; key2=value 2"
|
||||||
@ -269,7 +269,7 @@ sub_vars() {
|
|||||||
SUB_NAME="$2" SUB_URL="$3"
|
SUB_NAME="$2" SUB_URL="$3"
|
||||||
_p=$(sub_get "$1" "$2" PROXY) _ua=$(sub_get "$1" "$2" UA) _hw=$(sub_get "$1" "$2" HWID)
|
_p=$(sub_get "$1" "$2" PROXY) _ua=$(sub_get "$1" "$2" UA) _hw=$(sub_get "$1" "$2" HWID)
|
||||||
_h=$(sub_get "$1" "$2" HEADERS)
|
_h=$(sub_get "$1" "$2" HEADERS)
|
||||||
[ -z "$_p" ] && [ "$BOOT" = 1 ] && _p=BOOT-AUTO
|
[ -n "$_p" ] || _p=BOOT-AUTO
|
||||||
[ "$_p" = none ] && _p=""
|
[ "$_p" = none ] && _p=""
|
||||||
if [ "$_hw" = 1 ]; then
|
if [ "$_hw" = 1 ]; then
|
||||||
[ -n "$_ua" ] || _ua=$HWID_UA
|
[ -n "$_ua" ] || _ua=$HWID_UA
|
||||||
@ -879,7 +879,7 @@ wizard() {
|
|||||||
if [ "$BOOT" = 1 ]; then
|
if [ "$BOOT" = 1 ]; then
|
||||||
ask _p " качать через (BOOT-AUTO/BOOT/DIRECT/FOREIGN)" BOOT-AUTO
|
ask _p " качать через (BOOT-AUTO/BOOT/DIRECT/FOREIGN)" BOOT-AUTO
|
||||||
else
|
else
|
||||||
_p=DIRECT
|
ask _p " качать через (BOOT-AUTO/DIRECT/FOREIGN)" BOOT-AUTO
|
||||||
fi
|
fi
|
||||||
eval "SUB${_n}_PROXY=\$_p"
|
eval "SUB${_n}_PROXY=\$_p"
|
||||||
yesno _hw " HWID-заголовки (x-hwid, x-device-os, ...; для подписок с лимитом устройств)" n
|
yesno _hw " HWID-заголовки (x-hwid, x-device-os, ...; для подписок с лимитом устройств)" n
|
||||||
@ -977,7 +977,7 @@ write_config() {
|
|||||||
for _pr in $SUB_PAIRS; do
|
for _pr in $SUB_PAIRS; do
|
||||||
_K=$(echo "${_pr%%=*}" | tr 'a-z' 'A-Z')
|
_K=$(echo "${_pr%%=*}" | tr 'a-z' 'A-Z')
|
||||||
_p=$(sub_get "$_i" "${_pr%%=*}" PROXY) _hw=$(sub_get "$_i" "${_pr%%=*}" HWID)
|
_p=$(sub_get "$_i" "${_pr%%=*}" PROXY) _hw=$(sub_get "$_i" "${_pr%%=*}" HWID)
|
||||||
case "$_p" in BOOT | BOOT-AUTO) [ "$BOOT" = 1 ] || _p=DIRECT ;; esac
|
[ "$_p" != BOOT ] || [ "$BOOT" = 1 ] || _p=BOOT-AUTO
|
||||||
[ -n "$_p" ] && [ "$_p" != BOOT-AUTO ] && echo "SUB_${_K}_PROXY=$(q "$_p")"
|
[ -n "$_p" ] && [ "$_p" != BOOT-AUTO ] && echo "SUB_${_K}_PROXY=$(q "$_p")"
|
||||||
[ "$_hw" = 1 ] && echo "SUB_${_K}_HWID=1" && _any_hwid=1
|
[ "$_hw" = 1 ] && echo "SUB_${_K}_HWID=1" && _any_hwid=1
|
||||||
sub_off "$_i" "${_pr%%=*}" && echo "SUB_${_K}_DISABLED=1"
|
sub_off "$_i" "${_pr%%=*}" && echo "SUB_${_K}_DISABLED=1"
|
||||||
|
|||||||
@ -5,12 +5,3 @@
|
|||||||
url: "https://www.gstatic.com/generate_204"
|
url: "https://www.gstatic.com/generate_204"
|
||||||
interval: 300
|
interval: 300
|
||||||
lazy: false
|
lazy: false
|
||||||
|
|
||||||
# default for downloading subscriptions: BOOT, else the nodes of the saved
|
|
||||||
# subscriptions (providers are cached on disk), else direct
|
|
||||||
- name: BOOT-AUTO
|
|
||||||
type: fallback
|
|
||||||
proxies: [BOOT, FOREIGN, DIRECT]
|
|
||||||
url: "https://www.gstatic.com/generate_204"
|
|
||||||
interval: 300
|
|
||||||
lazy: false
|
|
||||||
|
|||||||
11
templates/groups/15-sub.yaml
Normal file
11
templates/groups/15-sub.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# default for downloading subscriptions: BOOT (if set), else the nodes of the
|
||||||
|
# saved subscriptions (providers are cached on disk), else direct. FOREIGN goes
|
||||||
|
# before DIRECT: the health check of DIRECT (gstatic) passes in Russia even when
|
||||||
|
# the subscription site itself is blocked.
|
||||||
|
- name: BOOT-AUTO
|
||||||
|
type: fallback
|
||||||
|
proxies: [BOOT, FOREIGN, DIRECT] #@boot
|
||||||
|
proxies: [FOREIGN, DIRECT] #@!boot
|
||||||
|
url: "https://www.gstatic.com/generate_204"
|
||||||
|
interval: 300
|
||||||
|
lazy: false
|
||||||
@ -143,7 +143,7 @@
|
|||||||
subPairs(v.SUBS).forEach(({ id }, i) => {
|
subPairs(v.SUBS).forEach(({ id }, i) => {
|
||||||
if (subOff(v, i, id)) return;
|
if (subOff(v, i, id)) return;
|
||||||
on++;
|
on++;
|
||||||
if (/^BOOT(-AUTO)?$/.test(subGet(v, i, id, "PROXY")) && v.BOOT !== "1") throw new Error(`subscription ${id}: PROXY=BOOT but BOOT=0`);
|
if (subGet(v, i, id, "PROXY") === "BOOT" && v.BOOT !== "1") throw new Error(`subscription ${id}: PROXY=BOOT but BOOT=0`);
|
||||||
if (subGet(v, i, id, "HWID") === "1") {
|
if (subGet(v, i, id, "HWID") === "1") {
|
||||||
for (const k of ["HWID_OS", "HWID_OS_VER", "HWID_MODEL", "HWID_ID"]) {
|
for (const k of ["HWID_OS", "HWID_OS_VER", "HWID_MODEL", "HWID_ID"]) {
|
||||||
if (!v[k]) throw new Error(`${k} is empty (subscription ${id} has HWID=1)`);
|
if (!v[k]) throw new Error(`${k} is empty (subscription ${id} has HWID=1)`);
|
||||||
@ -164,7 +164,7 @@
|
|||||||
|
|
||||||
// per-subscription variables for the .each templates (see sub_vars in mihomo-kit.sh)
|
// per-subscription variables for the .each templates (see sub_vars in mihomo-kit.sh)
|
||||||
function subVars(v, i, id, url) {
|
function subVars(v, i, id, url) {
|
||||||
let proxy = subGet(v, i, id, "PROXY") || (v.BOOT === "1" ? "BOOT-AUTO" : "");
|
let proxy = subGet(v, i, id, "PROXY") || "BOOT-AUTO";
|
||||||
if (proxy === "none") proxy = "";
|
if (proxy === "none") proxy = "";
|
||||||
let ua = subGet(v, i, id, "UA");
|
let ua = subGet(v, i, id, "UA");
|
||||||
let h = subGet(v, i, id, "HEADERS");
|
let h = subGet(v, i, id, "HEADERS");
|
||||||
|
|||||||
@ -108,7 +108,7 @@
|
|||||||
<legend>Подписки</legend>
|
<legend>Подписки</legend>
|
||||||
<div id="subs"></div>
|
<div id="subs"></div>
|
||||||
<button type="button" class="link-btn" id="add-sub">+ подписка</button>
|
<button type="button" class="link-btn" id="add-sub">+ подписка</button>
|
||||||
<p class="hint">«Через»: откуда качать подписку. Авто = BOOT-AUTO (BOOT, иначе ноды сохранённых подписок, иначе напрямую), если BOOT включён.
|
<p class="hint">«Через»: откуда качать подписку. Авто = BOOT-AUTO: BOOT (если включён), иначе ноды сохранённых подписок, иначе напрямую.
|
||||||
HWID — для подписок с лимитом устройств (x-hwid, x-device-os, …).</p>
|
HWID — для подписок с лимитом устройств (x-hwid, x-device-os, …).</p>
|
||||||
<label for="RU_IPS">Доп. IP через RU (CIDR через пробел)</label>
|
<label for="RU_IPS">Доп. IP через RU (CIDR через пробел)</label>
|
||||||
<input type="text" id="RU_IPS" value="194.190.191.112/32">
|
<input type="text" id="RU_IPS" value="194.190.191.112/32">
|
||||||
@ -331,7 +331,7 @@
|
|||||||
subPairs(v.SUBS).forEach(({ id }, i) => {
|
subPairs(v.SUBS).forEach(({ id }, i) => {
|
||||||
if (subOff(v, i, id)) return;
|
if (subOff(v, i, id)) return;
|
||||||
on++;
|
on++;
|
||||||
if (/^BOOT(-AUTO)?$/.test(subGet(v, i, id, "PROXY")) && v.BOOT !== "1") throw new Error(`subscription ${id}: PROXY=BOOT but BOOT=0`);
|
if (subGet(v, i, id, "PROXY") === "BOOT" && v.BOOT !== "1") throw new Error(`subscription ${id}: PROXY=BOOT but BOOT=0`);
|
||||||
if (subGet(v, i, id, "HWID") === "1") {
|
if (subGet(v, i, id, "HWID") === "1") {
|
||||||
for (const k of ["HWID_OS", "HWID_OS_VER", "HWID_MODEL", "HWID_ID"]) {
|
for (const k of ["HWID_OS", "HWID_OS_VER", "HWID_MODEL", "HWID_ID"]) {
|
||||||
if (!v[k]) throw new Error(`${k} is empty (subscription ${id} has HWID=1)`);
|
if (!v[k]) throw new Error(`${k} is empty (subscription ${id} has HWID=1)`);
|
||||||
@ -352,7 +352,7 @@
|
|||||||
|
|
||||||
// per-subscription variables for the .each templates (see sub_vars in mihomo-kit.sh)
|
// per-subscription variables for the .each templates (see sub_vars in mihomo-kit.sh)
|
||||||
function subVars(v, i, id, url) {
|
function subVars(v, i, id, url) {
|
||||||
let proxy = subGet(v, i, id, "PROXY") || (v.BOOT === "1" ? "BOOT-AUTO" : "");
|
let proxy = subGet(v, i, id, "PROXY") || "BOOT-AUTO";
|
||||||
if (proxy === "none") proxy = "";
|
if (proxy === "none") proxy = "";
|
||||||
let ua = subGet(v, i, id, "UA");
|
let ua = subGet(v, i, id, "UA");
|
||||||
let h = subGet(v, i, id, "HEADERS");
|
let h = subGet(v, i, id, "HEADERS");
|
||||||
@ -489,7 +489,8 @@
|
|||||||
<script>
|
<script>
|
||||||
const TEMPLATES = {
|
const TEMPLATES = {
|
||||||
"dns/10-base.yaml": "dns:\n enable: true\n ipv6: false\n respect-rules: true\n enhanced-mode: fake-ip\n fake-ip-range: 198.18.0.1/16\n fake-ip-filter:\n - '*.lan'\n - '*.local' #@router\n - '+.ru'\n - '+.xn--p1ai' #@router\n - geosite:ru-inside #@router\n # tailnet names: real 100.x addresses from MagicDNS (nameserver-policy below) #@tailscale\n - '+.ts.net' #@tailscale\n - '+.${@TS_DOMAINS}' #@tailscale\n\n default-nameserver:\n - 77.88.8.8\n - 1.1.1.1 #@router\n - 223.5.5.5 #@mobile\n\n proxy-server-nameserver:\n - https://77.88.8.8/dns-query\n\n direct-nameserver:\n - 77.88.8.8\n - 77.88.8.1\n\n nameserver:\n - https://1.1.1.1/dns-query #@router\n - https://dns.google/dns-query\n - https://1.1.1.1/dns-query #@mobile\n\n # MagicDNS of the embedded Tailscale (the proxy named \"tailscale\") #@tailscale\n nameserver-policy: #@tailscale\n '+.ts.net': tailscale://tailscale #@tailscale\n '+.${@TS_DOMAINS}': tailscale://tailscale #@tailscale\n",
|
"dns/10-base.yaml": "dns:\n enable: true\n ipv6: false\n respect-rules: true\n enhanced-mode: fake-ip\n fake-ip-range: 198.18.0.1/16\n fake-ip-filter:\n - '*.lan'\n - '*.local' #@router\n - '+.ru'\n - '+.xn--p1ai' #@router\n - geosite:ru-inside #@router\n # tailnet names: real 100.x addresses from MagicDNS (nameserver-policy below) #@tailscale\n - '+.ts.net' #@tailscale\n - '+.${@TS_DOMAINS}' #@tailscale\n\n default-nameserver:\n - 77.88.8.8\n - 1.1.1.1 #@router\n - 223.5.5.5 #@mobile\n\n proxy-server-nameserver:\n - https://77.88.8.8/dns-query\n\n direct-nameserver:\n - 77.88.8.8\n - 77.88.8.1\n\n nameserver:\n - https://1.1.1.1/dns-query #@router\n - https://dns.google/dns-query\n - https://1.1.1.1/dns-query #@mobile\n\n # MagicDNS of the embedded Tailscale (the proxy named \"tailscale\") #@tailscale\n nameserver-policy: #@tailscale\n '+.ts.net': tailscale://tailscale #@tailscale\n '+.${@TS_DOMAINS}': tailscale://tailscale #@tailscale\n",
|
||||||
"groups/10-boot.yaml": " # BOOT: whitelisted entry nodes (BOOT_LINKS), the first alive one\n - name: BOOT\n type: fallback\n proxies: [${SEED_LIST}]\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n\n # default for downloading subscriptions: BOOT, else the nodes of the saved\n # subscriptions (providers are cached on disk), else direct\n - name: BOOT-AUTO\n type: fallback\n proxies: [BOOT, FOREIGN, DIRECT]\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n",
|
"groups/10-boot.yaml": " # BOOT: whitelisted entry nodes (BOOT_LINKS), the first alive one\n - name: BOOT\n type: fallback\n proxies: [${SEED_LIST}]\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n",
|
||||||
|
"groups/15-sub.yaml": " # default for downloading subscriptions: BOOT (if set), else the nodes of the\n # saved subscriptions (providers are cached on disk), else direct. FOREIGN goes\n # before DIRECT: the health check of DIRECT (gstatic) passes in Russia even when\n # the subscription site itself is blocked.\n - name: BOOT-AUTO\n type: fallback\n proxies: [BOOT, FOREIGN, DIRECT] #@boot\n proxies: [FOREIGN, DIRECT] #@!boot\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n",
|
||||||
"groups/20-sub.yaml": " - name: RU\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://ya.ru\"\n interval: 300\n tolerance: 50\n lazy: false\n\n - name: FOREIGN\n type: url-test\n use: [${SUB_LIST}]\n exclude-filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n tolerance: 50\n lazy: false\n",
|
"groups/20-sub.yaml": " - name: RU\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://ya.ru\"\n interval: 300\n tolerance: 50\n lazy: false\n\n - name: FOREIGN\n type: url-test\n use: [${SUB_LIST}]\n exclude-filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n tolerance: 50\n lazy: false\n",
|
||||||
"groups/30-torrent.yaml": " - name: TORRENT\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)torrent|\\\\[tor\\\\]\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n timeout: 6000\n tolerance: 500\n max-failed-times: 5\n lazy: false\n",
|
"groups/30-torrent.yaml": " - name: TORRENT\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)torrent|\\\\[tor\\\\]\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n timeout: 6000\n tolerance: 500\n max-failed-times: 5\n lazy: false\n",
|
||||||
"groups/40-openvpn.yaml": " # url: what the dashboard's delay test opens through the tunnel;\n # interval 0: no background checks (they would redial with a stale OTP)\n - name: ${OVPN_GROUP}\n type: select\n use: [${OVPN_PROVIDER}]\n url: \"${OVPN_CHECK_URL}\"\n interval: 0\n",
|
"groups/40-openvpn.yaml": " # url: what the dashboard's delay test opens through the tunnel;\n # interval 0: no background checks (they would redial with a stale OTP)\n - name: ${OVPN_GROUP}\n type: select\n use: [${OVPN_PROVIDER}]\n url: \"${OVPN_CHECK_URL}\"\n interval: 0\n",
|
||||||
|
|||||||
@ -108,7 +108,7 @@
|
|||||||
<legend>Подписки</legend>
|
<legend>Подписки</legend>
|
||||||
<div id="subs"></div>
|
<div id="subs"></div>
|
||||||
<button type="button" class="link-btn" id="add-sub">+ подписка</button>
|
<button type="button" class="link-btn" id="add-sub">+ подписка</button>
|
||||||
<p class="hint">«Через»: откуда качать подписку. Авто = BOOT-AUTO (BOOT, иначе ноды сохранённых подписок, иначе напрямую), если BOOT включён.
|
<p class="hint">«Через»: откуда качать подписку. Авто = BOOT-AUTO: BOOT (если включён), иначе ноды сохранённых подписок, иначе напрямую.
|
||||||
HWID — для подписок с лимитом устройств (x-hwid, x-device-os, …).</p>
|
HWID — для подписок с лимитом устройств (x-hwid, x-device-os, …).</p>
|
||||||
<label for="RU_IPS">Доп. IP через RU (CIDR через пробел)</label>
|
<label for="RU_IPS">Доп. IP через RU (CIDR через пробел)</label>
|
||||||
<input type="text" id="RU_IPS" value="194.190.191.112/32">
|
<input type="text" id="RU_IPS" value="194.190.191.112/32">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user