浏览代码

Allow empty "spiderX" (client side)

RPRX 2 年之前
父节点
当前提交
c7358a32f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      infra/conf/transport_internet.go

+ 1 - 1
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)