Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
nyiyui committed Dec 17, 2023
1 parent 1a7d5b0 commit 4ef5bca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cs/tokencheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func checkPeer(ti TokenInfo, cnn string, peer central.Peer) error {
if peer.Name != cpn.Name {
return newHttpErrorf(403, "%s as only peer %s is allowed", prelude, cpn.Name)
}
// TODO: check peer IP networks (make sure it fits inside the network's IPs)
if cpn.CanSeeElementAny == false {
if peer.CanSee == nil {
return newHttpErrorf(403, "%s as peer specifies CanSee any but CanSeeElement does not allow any", prelude)
Expand Down

0 comments on commit 4ef5bca

Please sign in to comment.