1 Commits
v0.1 ... master

Author SHA1 Message Date
5bbd19635e Typo fix 2025-08-04 12:39:25 +02:00

View File

@@ -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);