Skip to content

Commit

Permalink
VMess Support (#1453)
Browse files Browse the repository at this point in the history
* VMess Support
  • Loading branch information
reflog authored Dec 16, 2024
1 parent ff855c4 commit 71c7c9e
Show file tree
Hide file tree
Showing 7 changed files with 542 additions and 621 deletions.
6 changes: 6 additions & 0 deletions apipb/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ func ProxyToLegacyConfig(cfg *ProxyConnectConfig) (*commonconfig.ProxyConfig, er
"wasm_available_at": strings.Join(pCfg.ConnectCfgWater.WasmAvailableAt, ","),
"download_timeout": duration.String(),
}
case *ProxyConnectConfig_ConnectCfgVmess:
legacy.PluggableTransport = "vmess"
legacy.PluggableTransportSettings = map[string]string{
"uuid": pCfg.ConnectCfgVmess.Uuid,
"security": pCfg.ConnectCfgVmess.Security,
}

default:
return nil, fmt.Errorf("unsupported protocol config: %T", cfg.ProtocolConfig)
Expand Down
Loading

0 comments on commit 71c7c9e

Please sign in to comment.