Reuse InterfaceFinder

This commit is contained in:
世界 2024-09-22 22:21:50 +08:00
parent f845cffeac
commit 9e1969527e
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
7 changed files with 26 additions and 56 deletions

View file

@ -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