mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 21:01:40 +02:00
feat: add editMetaByRequest, specifies job by parameters instead of dbid
This commit is contained in:
@@ -473,6 +473,7 @@ func securedCheck(user *schema.User, r *http.Request) error {
|
||||
IPAddress = r.RemoteAddr
|
||||
}
|
||||
|
||||
// Cannot Handle ipv6! (e.g. localhost -> [::1])
|
||||
if strings.Contains(IPAddress, ":") {
|
||||
IPAddress = strings.Split(IPAddress, ":")[0]
|
||||
}
|
||||
|
Reference in New Issue
Block a user