Completed get/set configuration
For debugging of "outbound flow" Mostly, a few things still missing
This commit is contained in:
parent
1f0976a26c
commit
7e185db141
6 changed files with 109 additions and 80 deletions
|
|
@ -16,9 +16,9 @@ func (table *RoutingTable) AllowedIPs(peer *Peer) []net.IPNet {
|
|||
table.mutex.RLock()
|
||||
defer table.mutex.RUnlock()
|
||||
|
||||
allowed := make([]net.IPNet, 10)
|
||||
table.IPv4.AllowedIPs(peer, allowed)
|
||||
table.IPv6.AllowedIPs(peer, allowed)
|
||||
allowed := make([]net.IPNet, 0, 10)
|
||||
allowed = table.IPv4.AllowedIPs(peer, allowed)
|
||||
allowed = table.IPv6.AllowedIPs(peer, allowed)
|
||||
return allowed
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue