feat: Converter support REALITY share standard
This commit is contained in:
parent
9316c1293e
commit
3e47bfacf0
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,12 @@ func handleVShareLink(names map[string]int, url *url.URL, scheme string, proxy m
|
||||||
if sni := query.Get("sni"); sni != "" {
|
if sni := query.Get("sni"); sni != "" {
|
||||||
proxy["servername"] = sni
|
proxy["servername"] = sni
|
||||||
}
|
}
|
||||||
|
if realityPublicKey := query.Get("pbk"); realityPublicKey != "" {
|
||||||
|
proxy["reality-opts"] = map[string]any{
|
||||||
|
"public-key": realityPublicKey,
|
||||||
|
"short-id": query.Get("sid"),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch query.Get("packetEncoding") {
|
switch query.Get("packetEncoding") {
|
||||||
case "none":
|
case "none":
|
||||||
|
|
Loading…
Reference in a new issue