From c7358a32f5b75dc31b5428432a231b03b7dc421b Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Fri, 17 Feb 2023 21:07:27 +0800 Subject: [PATCH] Allow empty "spiderX" (client side) --- infra/conf/transport_internet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go index dd84a89a..4d2e92e4 100644 --- a/infra/conf/transport_internet.go +++ b/infra/conf/transport_internet.go @@ -642,7 +642,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) { return nil, newError(`invalid "shortId": `, c.ShortId) } if c.SpiderX == "" { - return nil, newError(`empty "spiderX"`) + c.SpiderX = "/" } if c.SpiderX[0] != '/' { return nil, newError(`invalid "spiderX": `, c.SpiderX)