feat(xray): default outbound in basic routing (#5815)

* feat(xray): default outbound picker in basic routing

Let panel users choose which outbound handles unmatched traffic by
moving it to the first position in the template outbounds list.

* fix(xray): keep direct/blocked outbounds when changing default

* style(routing): revert incidental whitespace churn

Drop double blank lines and the reformatted function signature so the default-outbound diff stays focused on behavior.
This commit is contained in:
Rouzbeh†
2026-07-09 03:25:47 +03:30
committed by GitHub
parent 2c28fa5f48
commit ea24ef0a69
17 changed files with 138 additions and 15 deletions
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "عدل Fake DNS",
"ipPool": "نطاق IP Pool",
"poolSize": "حجم المجموعة"
}
},
"defaultOutbound": "الصادر الافتراضي",
"defaultOutboundDesc": "الحركة التي لا تطابق أي قاعدة توجيه تستخدم هذا الصادر (الأول في القائمة)."
},
"hosts": {
"addHost": "إضافة مضيف",
+3 -1
View File
@@ -1983,7 +1983,9 @@
"edit": "Edit Fake DNS",
"ipPool": "IP Pool Subnet",
"poolSize": "Pool Size"
}
},
"defaultOutbound": "Default Outbound",
"defaultOutboundDesc": "Traffic that does not match any routing rule uses this outbound (Xray uses the first outbound in the list)."
}
},
"tgbot": {
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "Editar DNS Falso",
"ipPool": "Subred del grupo de IP",
"poolSize": "Tamaño del grupo"
}
},
"defaultOutbound": "Salida predeterminada",
"defaultOutboundDesc": "El tráfico que no coincide con ninguna regla de enrutamiento usa esta salida (la primera de la lista)."
},
"hosts": {
"addHost": "Agregar host",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "ویرایش دی‌ان‌اس جعلی",
"ipPool": "زیرشبکه استخر آی‌پی",
"poolSize": "اندازه استخر"
}
},
"defaultOutbound": "خروجی پیش‌فرض",
"defaultOutboundDesc": "ترافیکی که با هیچ قانون مسیریابی جور نشود از این خروجی استفاده می‌کند (اولین خروجی در فهرست)."
},
"hosts": {
"addHost": "افزودن میزبان",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "Edit DNS Palsu",
"ipPool": "Subnet Kumpulan IP",
"poolSize": "Ukuran Kolam"
}
},
"defaultOutbound": "Outbound default",
"defaultOutboundDesc": "Lalu lintas tanpa aturan routing memakai outbound ini (yang pertama dalam daftar)."
},
"hosts": {
"addHost": "Tambah Host",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "フェイクDNS編集",
"ipPool": "IPプールサブネット",
"poolSize": "プールサイズ"
}
},
"defaultOutbound": "デフォルトアウトバウンド",
"defaultOutboundDesc": "ルーティング規則に一致しないトラフィックはこのアウトバウンドを使います(一覧の先頭)。"
},
"hosts": {
"addHost": "ホストを追加",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "Editar Fake DNS",
"ipPool": "Sub-rede do Pool de IP",
"poolSize": "Tamanho do Pool"
}
},
"defaultOutbound": "Saída padrão",
"defaultOutboundDesc": "Tráfego sem regra de roteamento usa esta saída (a primeira da lista)."
},
"hosts": {
"addHost": "Adicionar Host",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "Редактировать Fake DNS",
"ipPool": "Подсеть пула IP",
"poolSize": "Размер пула"
}
},
"defaultOutbound": "Исходящий по умолчанию",
"defaultOutboundDesc": "Трафик без совпадения с правилами маршрутизации идёт через этот исходящий (первый в списке)."
},
"hosts": {
"addHost": "Добавить хост",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "Sahte DNS'i Düzenle",
"ipPool": "IP Havuzu Alt Ağı",
"poolSize": "Havuz Boyutu"
}
},
"defaultOutbound": "Varsayılan giden",
"defaultOutboundDesc": "Yönlendirme kuralıyla eşleşmeyen trafik bu gideni kullanır (listedeki ilk giden)."
},
"hosts": {
"addHost": "Host Ekle",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "Редагувати підроблений DNS",
"ipPool": "Підмережа IP-пулу",
"poolSize": "Розмір пулу"
}
},
"defaultOutbound": "Вихідний за замовчуванням",
"defaultOutboundDesc": "Трафік без збігу з правилами маршрутизації йде через цей вихідний (перший у списку)."
},
"hosts": {
"addHost": "Додати хост",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "Chỉnh sửa DNS giả",
"ipPool": "Mạng con nhóm IP",
"poolSize": "Kích thước bể bơi"
}
},
"defaultOutbound": "Outbound mặc định",
"defaultOutboundDesc": "Lưu lượng không khớp quy tắc định tuyến dùng outbound này (mục đầu danh sách)."
},
"hosts": {
"addHost": "Thêm Host",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "编辑假 DNS",
"ipPool": "IP 池子网",
"poolSize": "池大小"
}
},
"defaultOutbound": "默认出站",
"defaultOutboundDesc": "未匹配任何路由规则的流量走此出站(列表中的第一个出站)。"
},
"hosts": {
"addHost": "添加主机",
+3 -1
View File
@@ -1866,7 +1866,9 @@
"edit": "編輯假 DNS",
"ipPool": "IP 池子網",
"poolSize": "池大小"
}
},
"defaultOutbound": "預設出站",
"defaultOutboundDesc": "未符合任何路由規則的流量走此出站(清單中的第一個出站)。"
},
"hosts": {
"addHost": "新增 Host",