From 6bdeffe3f2a603cadbfd0ad36c9657043200637b Mon Sep 17 00:00:00 2001 From: octeep Date: Sun, 3 Apr 2022 19:35:08 +0100 Subject: [PATCH] Add IPv6 support --- wireguard.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wireguard.go b/wireguard.go index db38ca3..901945a 100644 --- a/wireguard.go +++ b/wireguard.go @@ -24,7 +24,8 @@ public_key=%s endpoint=%s persistent_keepalive_interval=%d preshared_key=%s -allowed_ip=0.0.0.0/0`, conf.SelfSecretKey, conf.PeerPublicKey, conf.PeerEndpoint, conf.KeepAlive, conf.PreSharedKey) +allowed_ip=0.0.0.0/0 +allowed_ip=::0/0`, conf.SelfSecretKey, conf.PeerPublicKey, conf.PeerEndpoint, conf.KeepAlive, conf.PreSharedKey) setting := &DeviceSetting{ipcRequest: request, dns: conf.DNS, deviceAddr: conf.SelfEndpoint, mtu: conf.MTU} return setting, nil