mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-05-21 01:15:07 +03:00
Reusable peer lookup/dial logic
This commit is contained in:
parent
75d2080e53
commit
42873be09b
12 changed files with 193 additions and 124 deletions
|
@ -40,6 +40,7 @@ type Core struct {
|
|||
tls *tls.Config // immutable after startup
|
||||
//_peers map[Peer]*linkInfo // configurable after startup
|
||||
_listeners map[ListenAddress]struct{} // configurable after startup
|
||||
peerFilter func(ip net.IP) bool // immutable after startup
|
||||
nodeinfo NodeInfo // immutable after startup
|
||||
nodeinfoPrivacy NodeInfoPrivacy // immutable after startup
|
||||
_allowedPublicKeys map[[32]byte]struct{} // configurable after startup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue