4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-14 18:36:07 +00:00

Handle AllowedEncryptionPublicKeys internally

This commit is contained in:
Neil Alexander
2019-01-16 20:26:39 +00:00
parent 4b6c925cb4
commit fdf300a1ff
3 changed files with 40 additions and 53 deletions

View File

@ -227,11 +227,6 @@ func main() {
logger.Println("An error occurred during startup")
panic(err)
}
// Check to see if any allowed encryption keys were provided in the config.
// If they were then set them now.
for _, pBoxStr := range cfg.AllowedEncryptionPublicKeys {
n.core.AddAllowedEncryptionPublicKey(pBoxStr)
}
// The Stop function ensures that the TUN/TAP adapter is correctly shut down
// before the program exits.
defer func() {