Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

Wireguard share link

Open iambabyninja opened this issue 1 year ago • 5 comments

Good day, dear community members.

After many years we have encountered a problem: all widely used protocols already have standardized URL formats for sharing configuration data — VLESS, Shadowsocks, Trojan, VMess. However, WireGuard, which is still included in the Xray core, has no such unified standard.

Because of the lack of a standard, we see the following issues: • each client implements URL parsing differently; • each panel generates links in its own way; • compatibility between ecosystems and applications suffers.

Therefore, I propose that we discuss and develop a unified scheme for sharing WireGuard configurations via URL, so we can bring all current solutions to a single format. As a starting point, I suggest the following:

wireguard://endpoint:228?private_key=privatekey&peer_public_key=pubkey&pre_shared_key=preshared&mtu=228&address=address#link_name

Where each parameter means: • ?endpoint — the server address.; • ?private_key — the client’s private key; • ?peer_public_key — the server/peer public key; • ?pre_shared_key — optional pre-shared key; • ?mtu - MTU value for the interface; • ?address — list of the client’s IP addresses inside the tunnel; • #name — configuration name/label.

If no one has objections or suggestions, I will formalize this into the appropriate document.

iambabyninja avatar Nov 20 '25 09:11 iambabyninja

I think it's easier to delete it.

Jolymmiles avatar Nov 20 '25 09:11 Jolymmiles

xray制定VLESS分享链接是因为VLESS是Xray弄的 其他地方弄个所谓wireguard分享链接只会导致更多的历史债 就像现行的VMESS分享链接其实是当初是v2rayn所使用的 现在变成事实标准搞得现在正主v2fly都没法碰 再者wireguard设计并不能让它一个配置多端在线 叫"share link" 会很糟糕 因为它不能share

Fangliding avatar Nov 20 '25 09:11 Fangliding

Maybe we should just remove it altogether?

It seems that no one on the team has the desire or time to support it. Its use in the community is also rare.

EnleStars avatar Nov 20 '25 09:11 EnleStars

I still use wireguard via xray for my home server and connecting to it.

HappDev avatar Nov 20 '25 09:11 HappDev

I think it's easier to delete it.

If you don't use it doesn't mean nobody uses it and it should be removed. You're not the center of the world.

M03ED avatar Nov 20 '25 11:11 M03ED