mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-09 12:50:59 +00:00
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:
committed by
GitHub
parent
8834e5fbbe
commit
e20d73ba7e
@@ -34,7 +34,6 @@ const props = defineProps({
|
||||
open: { type: Boolean, default: false },
|
||||
outbound: { type: Object, default: null },
|
||||
existingTags: { type: Array, default: () => [] },
|
||||
inboundTags: { type: Array, default: () => [] },
|
||||
});
|
||||
|
||||
const emit = defineEmits(['update:open', 'confirm']);
|
||||
@@ -318,10 +317,8 @@ function regenerateWgKeys() {
|
||||
<!-- ============== Loopback ============== -->
|
||||
<template v-if="isLoopback">
|
||||
<a-form-item label="Inbound tag">
|
||||
<a-auto-complete v-model:value="outbound.settings.inboundTag"
|
||||
:options="inboundTags.map((tag) => ({ value: tag }))"
|
||||
:filter-option="(input, option) => option.value.toLowerCase().includes(input.toLowerCase())"
|
||||
placeholder="tag of an existing inbound to re-route into" />
|
||||
<a-input v-model:value="outbound.settings.inboundTag"
|
||||
placeholder="inbound tag using in routing rules" />
|
||||
</a-form-item>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user