Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get-network-information #359

Merged
merged 1 commit into from
Sep 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion wireguard-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ headless-install
# Set up the wireguard, if config it isn't already there.
if [ ! -f "${WIREGUARD_CONFIG}" ]; then

# Variables
get-network-information

# Custom IPv4 subnet
function set-ipv4-subnet() {
echo "What IPv4 subnet do you want to use?"
Expand Down Expand Up @@ -399,7 +402,6 @@ if [ ! -f "${WIREGUARD_CONFIG}" ]; then
until [[ "${SERVER_HOST_V4_SETTINGS}" =~ ^[1-2]$ ]]; do
read -rp "IPv4 Choice [1-2]:" -e -i 1 SERVER_HOST_V4_SETTINGS
done
get-network-information
case ${SERVER_HOST_V4_SETTINGS} in
1)
SERVER_HOST_V4=${DEFAULT_INTERFACE_IPV4}
Expand Down