remove mac addr check

This commit is contained in:
abhishek9686 2025-06-13 07:22:36 +05:30
parent 0244852288
commit 9804366f6e

View file

@ -178,7 +178,7 @@ func Authorize(
// check if host instead of user
if hostAllowed {
// TODO --- should ensure that node is only operating on itself
if hostID, macAddr, _, err := logic.VerifyHostToken(authToken); err == nil && macAddr != "" {
if hostID, _, _, err := logic.VerifyHostToken(authToken); err == nil {
r.Header.Set(hostIDHeader, hostID)
// this indicates request is from a node
// used for failover - if a getNode comes from node, this will trigger a metrics wipe