From 530715315c9198091564e2cc8f182017b5482c03 Mon Sep 17 00:00:00 2001 From: Yurun Date: Sun, 5 Dec 2021 11:59:18 +0800 Subject: [PATCH] Fix the return result of net_get_interfaces() under windows does not contain wireless network --- ext/standard/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/net.c b/ext/standard/net.c index c549bfbc5b0c0..f8e934d5393cc 100644 --- a/ext/standard/net.c +++ b/ext/standard/net.c @@ -190,7 +190,7 @@ PHP_FUNCTION(net_get_interfaces) { for (p = pAddresses; p; p = p->Next) { zval iface, unicast; - if ((IF_TYPE_ETHERNET_CSMACD != p->IfType) && (IF_TYPE_SOFTWARE_LOOPBACK != p->IfType)) { + if ((IF_TYPE_ETHERNET_CSMACD != p->IfType) && (IF_TYPE_IEEE80211 != p->IfType) && (IF_TYPE_SOFTWARE_LOOPBACK != p->IfType)) { continue; }