From fe981f67ecc829cba9bab110dd790b854ecc142b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Tue, 23 Nov 2021 16:22:23 +0800 Subject: [PATCH] :bug: fix windows check parent --- server/check.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/check.go b/server/check.go index 234be581..a1024807 100644 --- a/server/check.go +++ b/server/check.go @@ -49,7 +49,7 @@ func CheckParent(path string, password string) bool { } return true } else { - if path == "/" { + if path == "/" || path == "\\" { return true } return CheckParent(filepath.Dir(path), password) @@ -72,7 +72,7 @@ func CheckDownLink(path string, passwordMd5 string) bool { if !conf.CheckParent { return true } - if path == "/" { + if path == "/" || path == "\\" { return true } return CheckDownLink(filepath.Dir(path), passwordMd5)