about summary refs log tree commit diff
path: root/chainloader.sh
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2018-08-24 18:21:51 +0200
committermaride <maride@darknebu.la>2018-08-24 18:21:51 +0200
commit9c167802cc9b9a72fb6b3d773e9ce10edcf434c4 (patch)
treef57bd501af6d8bbf2c3865e982bdb887ef57880f /chainloader.sh
parent0a40e8487cb9e1ce4c21fbd6ba84ea5044a0db45 (diff)
Fix announced IP space, fix routes, fix client cert generation
Diffstat (limited to 'chainloader.sh')
-rw-r--r--chainloader.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/chainloader.sh b/chainloader.sh
index 98558b2..d9ec139 100644
--- a/chainloader.sh
+++ b/chainloader.sh
@@ -4,7 +4,8 @@
 openvpn --genkey --secret /prod/persist/static.key
 
 # Generate client.conf
-cat /prod/client.conf > /tmp/client.conf
+echo "remote $remoteAddress $remotePort" > /tmp/client.conf
+cat /prod/client.conf >> /tmp/client.conf
 echo "<secret>" >> /tmp/client.conf
 cat /prod/persist/static.key >> /tmp/client.conf
 echo "</secret>" >> /tmp/client.conf