mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
enhance: removed the ability to modify nginx log path settings online
This commit is contained in:
parent
abd76ff930
commit
27f751671b
4 changed files with 9 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue