Merge pull request #187 from neilalexander/sessionfirewall

Add session firewall
This commit is contained in:
Arceliar 2018-10-08 18:41:15 -05:00 committed by GitHub
commit ba8af20817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 125 additions and 2 deletions

View file

@ -17,7 +17,7 @@ import (
type peers struct {
core *Core
mutex sync.Mutex // Synchronize writes to atomic
ports atomic.Value //map[Port]*peer, use CoW semantics
ports atomic.Value //map[switchPort]*peer, use CoW semantics
authMutex sync.RWMutex
allowedEncryptionPublicKeys map[boxPubKey]struct{}
}