Tinc: copy resolv.conf on startup. closes https://github.com/opnsense/plugins/issues/1390

This commit is contained in:
Ad Schellevis
2019-07-07 14:02:31 +02:00
parent 7e12b96d2c
commit 844093f130
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= tinc
PLUGIN_VERSION= 1.4
PLUGIN_REVISION= 3
PLUGIN_REVISION= 4
PLUGIN_COMMENT= Tinc VPN
PLUGIN_DEPENDS= tinc
PLUGIN_MAINTAINER= ad@opnsense.org
@@ -80,6 +80,8 @@ def deploy(config_filename):
# dump private key
tmp = network.privkey()
write_file(tmp['filename'], tmp['content'])
with open('/etc/resolv.conf') as fin:
write_file("%s/etc/resolv.conf" % network.get_basepath(), fin.read())
# write tinc-up file
if_up = list()