Commit Diff


commit - 17cccef34f22562a1f284e24a2cc3edfd8f94078
commit + 3aac14a48c4125198cafd6547ea267f7b9795b2a
blob - f44bc807d6b9b3fe6546da385bceaeba43ba557b
blob + 0a573e99b4f6bc5c1e89b1b9a98b400b5aa7d7f0
--- wg-to-hostname
+++ wg-to-hostname
@@ -3,7 +3,7 @@
 #
 # https://x61.ar
 #
-# Ex.: for i in $(ls *jp*.conf); do ./mullvad-to-hostname $i; done
+# Ex.: for i in $(ls *jp*.conf); do ./wg-to-hostname $i; done
 #
 
 ## get info from mullvad's files
@@ -19,7 +19,7 @@ cat <<EOF >>hostname.wg0_$1
 description ${DESC}
 inet ${ADDRESS}
 wgkey ${PRIVATE_KEY}=
-wgpeer ${PUBLIC_KEY}= wgrtable 1 wgendpoint ${ENDPOINT_IP} ${ENDPOINT_PORT} 0.0.0.0/0
+wgpeer ${PUBLIC_KEY}= wgrtable 1 wgendpoint ${ENDPOINT_IP} ${ENDPOINT_PORT} wgaip 0.0.0.0/0
 !route add default -link -iface wg0
 up
 EOF