This commit is contained in:
sprov
2021-06-06 22:37:10 +08:00
parent 810dad53d5
commit 3d7192d0f6
29 changed files with 1131 additions and 199 deletions

View File

@@ -58,10 +58,10 @@ func (s *AllSetting) CheckValid() error {
}
if !strings.HasPrefix(s.WebBasePath, "/") {
return common.NewErrorf("web base path must start with '/' : <%v>", s.WebBasePath)
s.WebBasePath = "/" + s.WebBasePath
}
if !strings.HasSuffix(s.WebBasePath, "/") {
return common.NewErrorf("web base path must end with '/' : <%v>", s.WebBasePath)
s.WebBasePath += "/"
}
xrayConfig := &xray.Config{}