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

Commit c913ddb

Browse files
author
icymind
committed
extend dns cache size to 2048
1 parent 25cc793 commit c913ddb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/renderer/lib/openwrt.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ class Openwrt {
204204

205205
// dnsmasq
206206
configDnsmasq () {
207-
const cmd = "mkdir /etc/dnsmasq.d && echo 'conf-dir=/etc/dnsmasq.d/\nmin-cache-ttl=3600' > /etc/dnsmasq.conf"
207+
const cfgs = []
208+
cfgs.push('conf-dir=/etc/dnsmasq.d/')
209+
cfgs.push('min-cache-ttl=3600')
210+
cfgs.push('cache-size=2048')
211+
const cmd = `mkdir /etc/dnsmasq.d && echo '${cfgs.join('\n')}' > /etc/dnsmasq.conf`
208212
return this.execute(cmd)
209213
}
210214

0 commit comments

Comments
 (0)