mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
parent
e7d4bee59f
commit
fc8039a3cf
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ Address = ${SERVER_WG_IPV4}/24,${SERVER_WG_IPV6}/64
|
|||
ListenPort = ${SERVER_PORT}
|
||||
PrivateKey = ${SERVER_PRIV_KEY}" >"/etc/wireguard/${SERVER_WG_NIC}.conf"
|
||||
|
||||
if [ -x "$(command -v firewall-cmd)" ]; then
|
||||
if pgrep firewalld; then
|
||||
FIREWALLD_IPV4_ADDRESS=$(echo "${SERVER_WG_IPV4}" | cut -d"." -f1-3)".0"
|
||||
# shellcheck disable=SC2001
|
||||
FIREWALLD_IPV6_ADDRESS=$(echo "${SERVER_WG_IPV6}" | sed 's/:[^:]*$/:0/')
|
||||
|
|
Loading…
Add table
Reference in a new issue