dsh-pocket 1.13.2 → 1.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/service.mjs +3 -3
  2. package/package.json +1 -1
package/lib/service.mjs CHANGED
@@ -27,11 +27,11 @@ export async function qrDataUrl(text, { width = 220, margin = 1 } = {}) {
27
27
  /** RFC1918 私网地址:手机与电脑连同一局域网时通常可直连。 */
28
28
  const PRIVATE_IPV4_RE = /^(?:10\.|192\.168\.|172\.(?:1[6-9]|2\d|3[01])\.)/;
29
29
 
30
- /** 名称像真实物理网卡的接口(WLAN / Wi-Fi / Ethernet / 以太网 / en / eth)。 */
31
- const PHYSICAL_IFACE_RE = /^(?:wlan|wi-?fi|wireless|ethernet|eth\d|en\d|wlp\d|以太网|本地连接)/i;
30
+ /** 名称像真实物理网卡的接口(WLAN / Wi-Fi / Ethernet / 以太网 / 有线 / 无线 / en / eth)。 */
31
+ const PHYSICAL_IFACE_RE = /^(?:wlan|wi-?fi|wireless|ethernet|eth\d|en\d|wlp\d|以太网|有线|无线|本地连接)/i;
32
32
 
33
33
  /** 常见的 VPN / 虚拟网卡名称:手机通常无法通过它们直连电脑。 */
34
- const VPN_IFACE_RE = /(?:radmin|tailscale|zerotier|tun|tap|vpn|vethernet|virtual|vmware|virtualbox|wsl|docker|teredo|hamachi|bluetooth|bridge)/i;
34
+ const VPN_IFACE_RE = /(?:radmin|tailscale|zerotier|easytier|et_|tun|tap|vpn|vethernet|virtual|vmware|virtualbox|wsl|docker|teredo|hamachi|bluetooth|bridge)/i;
35
35
 
36
36
  /**
37
37
  * 从 networkInterfaces() 返回的接口表里选出手机最可能可达的 IPv4。
package/package.json CHANGED
@@ -76,5 +76,5 @@
76
76
  "access": "public",
77
77
  "registry": "https://registry.npmjs.org/"
78
78
  },
79
- "version": "1.13.2"
79
+ "version": "1.13.3"
80
80
  }