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

Commit 25cc793

Browse files
author
icymind
committed
extend dns cache time to 1 hour
1 parent ad6181c commit 25cc793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/lib/openwrt.js

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

205205
// dnsmasq
206206
configDnsmasq () {
207-
const cmd = "mkdir /etc/dnsmasq.d && echo 'conf-dir=/etc/dnsmasq.d/' > /etc/dnsmasq.conf"
207+
const cmd = "mkdir /etc/dnsmasq.d && echo 'conf-dir=/etc/dnsmasq.d/\nmin-cache-ttl=3600' > /etc/dnsmasq.conf"
208208
return this.execute(cmd)
209209
}
210210

0 commit comments

Comments
 (0)