diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index a133b2df..93ae6e56 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -22,11 +22,12 @@ msg_ok "Installed Dependencies" msg_info "Installing WireGuard (using pivpn.io)" OPTIONS_PATH='/options.conf' -cat >$OPTIONS_PATH <<'EOF' +SUBNET=$(printf %d.%d.%d.%d 10 $((RANDOM % 256)) $((RANDOM % 256)) 0) +cat >$OPTIONS_PATH <