Fix v2ray-plugin TLS server name

Co-authored-by: armv9 <48624112+arm64v8a@users.noreply.github.com>
This commit is contained in:
世界 2023-04-21 17:43:38 +08:00
parent d686172854
commit bbdd495ed5
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -45,6 +45,7 @@ func newV2RayPlugin(pluginOpts Args, router adapter.Router, dialer N.Dialer, ser
if hostOpt, loaded := pluginOpts.Get("host"); loaded {
host = hostOpt
tlsOptions.ServerName = hostOpt
}
if pathOpt, loaded := pluginOpts.Get("path"); loaded {
path = pathOpt