Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 18449a3

Browse files
author
icymind
committed
delete changeDNS()
1 parent 7f2dd9c commit 18449a3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/renderer/lib/win.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ async function getActiveAdapterIndex () {
7373
return indexAndName.index
7474
}
7575

76-
async function changeDns (index, ip) { // eslint-disable-line
77-
// await disableIPV6()
78-
const infIndex = index || await getActiveAdapterIndex()
79-
const cmd = `WMIC nicconfig where "InterfaceIndex = ${infIndex}" call SetDNSServerSearchOrder ("${ip}")`
80-
logger.info(`about to changeDns to ${ip}`)
81-
return sudoExec(cmd)
82-
}
83-
8476
async function changeGateway (index, ip) { // eslint-disable-line
8577
const infIndex = index || await getActiveAdapterIndex()
8678
const cmd = `WMIC nicconfig where "InterfaceIndex = ${infIndex}" call SetGateways ("${ip}")`

0 commit comments

Comments
 (0)