Skip to content

Commit

Permalink
[dns] skipFallback option #1019
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed May 3, 2024
1 parent 7cc6c19 commit d348104
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/html/xui/dns_modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label='Skip Fallback' v-if="isAdvanced">
<a-switch v-model="dnsModal.dnsServer.skipFallback"></a-switch>
</a-form-item>
</a-form>
</a-modal>
<script>
Expand All @@ -37,6 +40,7 @@
address: "localhost",
domains: [],
queryStrategy: 'UseIP',
skipFallback: true,
},
ok() {
domains = dnsModal.dnsServer.domains.filter(d => d.length>0);
Expand All @@ -57,13 +61,15 @@
address: dnsServer?? "",
domains: [],
queryStrategy: 'UseIP',
skipFallback: true,
}
}
} else {
this.dnsServer = {
address: "localhost",
domains: [],
queryStrategy: 'UseIP',
skipFallback: true,
}
}
this.isEdit = isEdit;
Expand Down

0 comments on commit d348104

Please sign in to comment.