Various API changes and simplifications to fix mobile builds

This commit is contained in:
Neil Alexander
2019-07-27 15:00:09 +01:00
parent 9b99f0b5e4
commit de1005e4fa
13 changed files with 63 additions and 122 deletions

View File

@@ -59,7 +59,7 @@ func (c *cryptokey) init(tun *TunAdapter) {
// Configure the CKR routes - this must only ever be called from the router
// goroutine, e.g. through router.doAdmin
func (c *cryptokey) configure() error {
current, _ := c.tun.config.Get()
current := c.tun.config.GetCurrent()
// Set enabled/disabled state
c.setEnabled(current.TunnelRouting.Enable)