You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这是 Clash 核心的问题,并非我所使用的 Clash 衍生版本(如 OpenClash、KoolClash 等)的特定问题 This is an issue of the Clash core per se, not to the derivatives of Clash, like OpenClash or KoolClash.
Verify steps
Clash version
alpha-efcb278f
What OS are you seeing the problem on?
macOS
Clash config
Description
应该是
outbound.tunDevice, err = wireguard.NewStackDevice(localPrefixes, uint32(mtu))
这里报错,也即多个 peer 不允许用同一个 local ip。虽然可以通过配置多个 proxy,而非使用一个 proxy 多个 peers 来回避掉,但是这种方式使得出口 nat 后的 endpoint 是多个,用来组网会引起诸多不便。
尝试了将 localPrefixes 去重,但结果仍然不对,会引起这几个 peer 都握手失败。(peer 只保留一个时,连接是没问题的)
是否考虑一下,将 WireguardPeerOption 中的 Ip、Ipv6 这两个字段上调到 WireGuardOption 中, 采用和 PrivateKey 一样的处理逻辑,亦即: 『如果peers不为空,该段落中的allowed_ips不可为空;前面段落的server,port,public-key,pre-shared-key均会被忽略,但ip,ipv6,private-key会被保留且只能在顶层指定』
这样,才是精确地和 wg-quick 等工具的配置方法和效果一一对应。
期盼大家的回复,谢谢!
The text was updated successfully, but these errors were encountered: