5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-09 23:20:28 +00:00

Fix getTunTap (fixes #363)

This commit is contained in:
Neil Alexander 2019-03-05 17:37:26 +00:00
parent ddd1ac4606
commit a17d6d3a68
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -173,9 +173,10 @@ func (a *admin) init(c *Core) {
})
a.addHandler("getTunTap", []string{}, func(in admin_info) (r admin_info, e error) {
defer func() {
recover()
r = admin_info{"none": admin_info{}}
e = nil
if err := recover(); err != nil {
r = admin_info{"none": admin_info{}}
e = nil
}
}()
return admin_info{