Skip to content

Commit

Permalink
Comment IPv6 Address field
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhymabekRoman authored Jan 3, 2024
1 parent 438c380 commit 17c50b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ runwgcf() {
sed -i 's/AllowedIPs = 0.0.0.0/#AllowedIPs = 0.0.0.0/' /etc/wireguard/wgcf.conf
elif [ "$1" = "-4" ]; then
sed -i 's/AllowedIPs = ::/#AllowedIPs = ::/' /etc/wireguard/wgcf.conf
sed -i '/^Address = \([0-9a-fA-F]\{1,4\}:\)\{7\}[0-9a-fA-F]\{1,4\}\/[0-9]\{1,3\}/s/^/#/' /etc/wireguard/wgcf.conf
fi


Expand Down

0 comments on commit 17c50b4

Please sign in to comment.