mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
[SSL证书]免费证书申请增加HTTP认证方式
This commit is contained in:
@@ -52,7 +52,12 @@ func checkIPWithoutCache(config *systemconfigs.SecurityConfig, ipAddr string) bo
|
||||
}
|
||||
|
||||
// 本地IP
|
||||
ip := net.ParseIP(ipAddr).To4()
|
||||
ipObj := net.ParseIP(ipAddr)
|
||||
if ipObj == nil {
|
||||
logs.Println("[USER_MUST_AUTH]invalid client address: " + ipAddr)
|
||||
return false
|
||||
}
|
||||
ip := ipObj.To4()
|
||||
if ip == nil {
|
||||
logs.Println("[USER_MUST_AUTH]invalid client address: " + ipAddr)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user