mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Revert "fix build, rework interface check and filter ipv6 for name"
This reverts commit ce31a383db.
This commit is contained in:
@@ -20,7 +20,7 @@ func GetAllPhysicalInterfaces() []PhysicalInterface {
|
||||
var outInterfaces []PhysicalInterface
|
||||
|
||||
for _, element := range ifaces {
|
||||
if element.Flags&net.FlagLoopback == 0 && element.Flags&net.FlagUp == 1 && IsPhysicalInterface(element.HardwareAddr.String()) {
|
||||
if element.Flags&net.FlagLoopback == 0 && element.Flags&net.FlagUp == 1 && isPhysicalInterface(element.HardwareAddr.String()) {
|
||||
outInterfaces = append(outInterfaces, PhysicalInterface{MACAddress: element.HardwareAddr.String(), Name: element.Name, FriendlyName: element.Name})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user