Skip to content

Commit 9a821a9

Browse files
committed
add secondary dns
1 parent 1293462 commit 9a821a9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

ui/src/components/Services.vue

+9-6
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,11 @@ export default {
247247
search: '',
248248
dnsList: {
249249
items: [
250-
{ text: "Google DNS", value: "8.8.8.8" },
251-
{ text: "Cloudflare DNS", value: "1.1.1.1" },
252-
{ text: "OpenDNS DNS", value: "208.67.222.222" },
253-
{ text: "Quad9 DNS", value: "9.9.9.9" },
250+
{ text: "Google DNS", value: [ "8.8.8.8", "8.8.4.4" ] },
251+
{ text: "Cloudflare DNS", value: [ "1.1.1.1", "1.0.0.1" ] },
252+
{ text: "OpenDNS DNS", value: [ "208.67.222.222", "208.67.220.222" ]},
253+
{ text: "OpenDNS Family Shield DNS", value: [ "208.67.222.123", "208.67.220.123" ]},
254+
{ text: "Quad9 DNS", value: [ "9.9.9.9" , "149.112.112.112" ] },
254255
]
255256
},
256257
svcList: {
@@ -509,13 +510,15 @@ export default {
509510
this.service.net.netName = this.netList.selected.value;
510511
this.service.net.default = {}
511512
this.service.net.default.dns = []
512-
this.service.net.default.dns[0] = this.dnsList.selected.value;
513+
this.service.net.default.dns[0] = this.dnsList.selected.value[0];
514+
this.service.net.default.dns[1] = this.dnsList.selected.value[1];
513515
514516
this.service.vpn = {}
515517
this.service.vpn.netName = this.serverList.selected.value;
516518
this.service.vpn.current = {}
517519
this.service.vpn.current.dns = []
518-
this.service.vpn.current.dns[0] = this.dnsList.selected.value;
520+
this.service.vpn.current.dns[0] = this.dnsList.selected.value[0];
521+
this.service.vpn.current.dns[1] = this.dnsList.selected.value[1];
519522
this.service.vpn.current.endpoint = this.server.ipAddress + ":" + port;
520523
this.service.vpn.current.listenPort = port;
521524

0 commit comments

Comments
 (0)