add loopback and dns servers tag to inbound lists in RuleFormModal (#4244)

* add loopback and dns servers tag to inbound lists in RuleFormModal

* fix: remove clientIp from dns section when its empty
This commit is contained in:
Amirmohammad Sadat Shokouhi
2026-05-11 09:53:30 +03:30
committed by GitHub
parent 8834e5fbbe
commit e20d73ba7e
4 changed files with 50 additions and 27 deletions
+1 -10
View File
@@ -35,15 +35,6 @@ const props = defineProps({
isMobile: { type: Boolean, default: false },
});
const inboundTagOptions = computed(() => {
const out = new Set();
for (const ib of props.templateSettings?.inbounds || []) {
if (ib.tag) out.add(ib.tag);
}
for (const t of props.inboundTags || []) out.add(t);
return [...out];
});
const emit = defineEmits(['reset-traffic', 'test', 'test-all', 'show-warp', 'show-nord', 'delete']);
const testMode = ref('tcp');
@@ -443,7 +434,7 @@ const rows = computed(() => {
</a-table>
<OutboundFormModal v-model:open="modalOpen" :outbound="editingOutbound" :existing-tags="existingTags"
:inbound-tags="inboundTagOptions" @confirm="onConfirm" />
@confirm="onConfirm" />
</a-space>
</template>