浏览代码

Merge pull request #1407 from XGFan/patch-1

fix ipv6 in no-wg-quick
dcarns 3 年之前
父节点
当前提交
da89e14de3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netclient/wireguard/noquick.go

+ 1 - 1
netclient/wireguard/noquick.go

@@ -70,7 +70,7 @@ func ApplyWithoutWGQuick(node *models.Node, ifacename string, confPath string) e
 			netmask = netmaskArr[1]
 		}
 		mask6 = netmask
-		address6 = node.Address
+		address6 = node.Address6
 	}
 	setKernelDevice(ifacename, address4, mask4, address6, mask6)