mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-12-01 09:24:46 +00:00
fix: allow tailnet peers through loopback sidecar
This commit is contained in:
parent
0fa4ec1fc1
commit
c7a9c963d1
2 changed files with 3 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ func allowedPeer(bindAddress string, remote net.Addr) bool {
|
|||
return false
|
||||
}
|
||||
if bind.IsLoopback() {
|
||||
return peer.IsLoopback()
|
||||
return peer.IsLoopback() || inTailnetRange(peer)
|
||||
}
|
||||
return inTailnetRange(peer)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue