mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-15 21:00:27 +00:00
parser/link: support gecko obfs in hysteria2 links
This commit is contained in:
@@ -39,8 +39,8 @@ func parseHysteria2Link(link string) (option.Outbound, error) {
|
|||||||
case "down":
|
case "down":
|
||||||
options.DownMbps, _ = strconv.Atoi(value)
|
options.DownMbps, _ = strconv.Atoi(value)
|
||||||
case "obfs":
|
case "obfs":
|
||||||
if value == "salamander" {
|
if value == "salamander" || value == "gecko" {
|
||||||
Obfs.Type = "salamander"
|
Obfs.Type = value
|
||||||
options.Obfs = Obfs
|
options.Obfs = Obfs
|
||||||
}
|
}
|
||||||
case "obfs-password":
|
case "obfs-password":
|
||||||
|
|||||||
Reference in New Issue
Block a user