mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
rename to 'AllowedBoxPubs' and similar
This commit is contained in:
parent
6ce16d8192
commit
5dac273a3d
7 changed files with 46 additions and 46 deletions
|
@ -151,7 +151,7 @@ func (iface *tcpInterface) handler(sock net.Conn, incoming bool) {
|
|||
return
|
||||
}
|
||||
// Check if we're authorized to connect to this key / IP
|
||||
if incoming && !iface.core.peers.isAuthBoxPub(&info.box) {
|
||||
if incoming && !iface.core.peers.isAllowedBoxPub(&info.box) {
|
||||
// Allow unauthorized peers if they're link-local
|
||||
raddrStr, _, _ := net.SplitHostPort(sock.RemoteAddr().String())
|
||||
raddr := net.ParseIP(raddrStr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue