mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-03 11:57:48 +00:00
Reconfigure support for crypto-key routing
This commit is contained in:
@ -127,6 +127,14 @@ func (r *router) mainLoop() {
|
||||
case f := <-r.admin:
|
||||
f()
|
||||
case e := <-r.reconfigure:
|
||||
// Send reconfigure notification to cryptokey
|
||||
response := make(chan error)
|
||||
r.cryptokey.reconfigure <- response
|
||||
if err := <-response; err != nil {
|
||||
e <- err
|
||||
}
|
||||
|
||||
// Anything else to do?
|
||||
e <- nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user