mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 13:14:24 +08:00
remove mac addr check
This commit is contained in:
parent
0244852288
commit
9804366f6e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue