Skip to content

Commit

Permalink
Merge pull request #14 from ZhymabekRoman/patch-1
Browse files Browse the repository at this point in the history
Comment IPv6 `Address` field when only IPv4 mode is set
  • Loading branch information
Neilpang authored Jan 4, 2024
2 parents 438c380 + 17c50b4 commit d2145e9
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 d2145e9

Please sign in to comment.