Use Close() for admin socket

This commit is contained in:
Neil Alexander 2018-07-07 20:04:11 +01:00
parent 2a931df07a
commit a5af69df8a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 12 additions and 15 deletions

View file

@ -135,7 +135,7 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
func (c *Core) Stop() {
c.log.Println("Stopping...")
c.tun.close()
c.admin.stop()
c.admin.close()
}
// Generates a new encryption keypair. The encryption keys are used to