mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +00:00
Fix v2ray-plugin TLS server name
Co-authored-by: armv9 <48624112+arm64v8a@users.noreply.github.com>
This commit is contained in:
parent
d686172854
commit
bbdd495ed5
|
@ -45,6 +45,7 @@ func newV2RayPlugin(pluginOpts Args, router adapter.Router, dialer N.Dialer, ser
|
||||||
|
|
||||||
if hostOpt, loaded := pluginOpts.Get("host"); loaded {
|
if hostOpt, loaded := pluginOpts.Get("host"); loaded {
|
||||||
host = hostOpt
|
host = hostOpt
|
||||||
|
tlsOptions.ServerName = hostOpt
|
||||||
}
|
}
|
||||||
if pathOpt, loaded := pluginOpts.Get("path"); loaded {
|
if pathOpt, loaded := pluginOpts.Get("path"); loaded {
|
||||||
path = pathOpt
|
path = pathOpt
|
||||||
|
|
Loading…
Reference in a new issue