fix: resolve 500 error on server creation due to ipv6_cidr schema violation

This commit is contained in:
xtcnet 2026-03-08 10:45:19 +07:00
parent 3960d6025f
commit dd8dd605f1

View file

@ -27,7 +27,6 @@ const internalWireguard = {
name: "wg0",
listen_port: 51820,
ipv4_cidr: "10.0.0.1/24",
ipv6_cidr: null,
mtu: 1420,
dns: WG_DEFAULT_DNS,
host: WG_HOST,
@ -382,7 +381,6 @@ const internalWireguard = {
public_key: publicKey,
listen_port,
ipv4_cidr,
ipv6_cidr: null,
mtu: data.mtu || WG_DEFAULT_MTU,
dns: data.dns || WG_DEFAULT_DNS,
host: data.host || WG_HOST,