Skip to content

Commit

Permalink
Tinc: copy resolv.conf on startup. closes opnsense#1390
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Jul 7, 2019
1 parent 7e12b96 commit 844093f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion security/tinc/Makefile
Original file line number Diff line number Diff line change
@@ -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= [email protected]
Expand Down
2 changes: 2 additions & 0 deletions security/tinc/src/opnsense/scripts/OPNsense/Tinc/tincd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 844093f

Please sign in to comment.