diff --git a/wg_quicker.c b/wg_quicker.c index ac0a181..1eb5675 100644 --- a/wg_quicker.c +++ b/wg_quicker.c @@ -288,7 +288,7 @@ int main(int argc, char *argv[]) fprintf(wg_config_f, "Address = %hhu.%hhu.%hhu.%hhu/24\n", vpn.last_ip.a, vpn.last_ip.b, vpn.last_ip.c, vpn.last_ip.d); fprintf(wg_config_f, "PrivateKey = %s\n", priv_b64); fprintf(wg_config_f, "PostUp = firewall-cmd --zone=public --add-port=%.*s/udp\n", vpn.server_port.length, vpn.server_port.text); - fprintf(wg_config_f, "PostUp = firewall-cmd --zone=public --remove-port=%.*s/udp\n", vpn.server_port.length, vpn.server_port.text); + fprintf(wg_config_f, "PostDown = firewall-cmd --zone=public --remove-port=%.*s/udp\n", vpn.server_port.length, vpn.server_port.text); fprintf(wg_config_f, "ListenPort = %.*s\n", vpn.server_port.length, vpn.server_port.text); fclose(wg_config_f);