mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 08:01:10 +00:00
16 lines
235 B
Go
16 lines
235 B
Go
package qmicore
|
|
|
|
func (m *Manager) DataInterface() string {
|
|
if m == nil {
|
|
return ""
|
|
}
|
|
m.mu.Lock()
|
|
core := m.qmiMgr
|
|
fallback := m.cfg.Interface
|
|
m.mu.Unlock()
|
|
if core == nil {
|
|
return fallback
|
|
}
|
|
return core.DataInterface()
|
|
}
|