mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-10 02:53:11 +00:00
Allow empty "spiderX" (client side)
This commit is contained in:
parent
e1cd1fd33e
commit
c7358a32f5
|
@ -642,7 +642,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
|
||||||
return nil, newError(`invalid "shortId": `, c.ShortId)
|
return nil, newError(`invalid "shortId": `, c.ShortId)
|
||||||
}
|
}
|
||||||
if c.SpiderX == "" {
|
if c.SpiderX == "" {
|
||||||
return nil, newError(`empty "spiderX"`)
|
c.SpiderX = "/"
|
||||||
}
|
}
|
||||||
if c.SpiderX[0] != '/' {
|
if c.SpiderX[0] != '/' {
|
||||||
return nil, newError(`invalid "spiderX": `, c.SpiderX)
|
return nil, newError(`invalid "spiderX": `, c.SpiderX)
|
||||||
|
|
Loading…
Reference in a new issue