Reuse InterfaceFinder
This commit is contained in:
parent
f845cffeac
commit
9e1969527e
7 changed files with 26 additions and 56 deletions
|
|
@ -110,7 +110,7 @@ func (m *defaultInterfaceMonitor) checkUpdate() error {
|
|||
defaultInterface *net.Interface
|
||||
err error
|
||||
)
|
||||
if m.options.UnderNetworkExtension {
|
||||
if m.underNetworkExtension {
|
||||
defaultInterface, err = getDefaultInterfaceBySocket()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue