mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
0.0.1
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user