enhance: removed the ability to modify nginx log path settings online

This commit is contained in:
Jacky 2024-10-08 10:27:20 +08:00
parent abd76ff930
commit 27f751671b
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
4 changed files with 9 additions and 8 deletions

View file

@ -33,12 +33,10 @@ func GetConfPath(dir ...string) (confPath string) {
}
joined := filepath.Clean(filepath.Join(confPath, filepath.Join(dir...)))
if !helper.IsUnderDirectory(confPath, joined) {
if !helper.IsUnderDirectory(joined, confPath) {
return confPath
}
return
return joined
}
func GetPIDPath() (path string) {