Skip to content

Commit

Permalink
Apply shellcheck suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett committed Feb 6, 2024
1 parent 6ac0d4d commit b17629a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ clean_port() {
}

extract_port() {
local address_port="$1"

# Extract port number
echo "$address_port" | awk -F: '{print $NF}'
echo "$1" | awk -F: '{print $NF}'
}

combine_ip_port() {
Expand Down Expand Up @@ -189,7 +186,7 @@ if [ "$(uci get wireguard.mesh_vpn.enabled)" = "true" ] || [ "$(uci get wireguar
LINKLOCAL="$(interface_linklocal)"

# Add link-address and Peer
ip address add "${LINKLOCAL}"/64 dev $MESH_VPN_IFACE
ip address add "${LINKLOCAL}"/64 dev "$MESH_VPN_IFACE"
gluon-wan wg set "$MESH_VPN_IFACE" peer "$PEER_PUBLICKEY" persistent-keepalive 25 allowed-ips "$PEER_LINKADDRESS/128" endpoint "$PEER_ENDPOINT"

# We need to allow incoming vxlan traffic on mesh iface
Expand Down

0 comments on commit b17629a

Please sign in to comment.