mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix 127.0.0.1 bug in isHostIntranet()
This commit is contained in:
@ -190,5 +190,5 @@ func isHostIntranet(s string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
return ip.IsPrivate()
|
||||
return ip.IsPrivate() || ip.IsLoopback() || ip.IsLinkLocalUnicast() || ip.IsLinkLocalMulticast()
|
||||
}
|
||||
|
Reference in New Issue
Block a user