socket_protobuf
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -112,3 +112,6 @@ "use strict"; | ||
for (const details of networkInterfaces[networkName]) { | ||
if (details.family == 'IPv4' && IPv4) { | ||
if (IPv4) { | ||
if (details.family != 'IPv4') { | ||
continue; | ||
} | ||
const address = details.address; | ||
@@ -121,2 +124,5 @@ if (address.substr(0, 3) != "127" && | ||
else { //获取IPv6地址 | ||
if (details.family != 'IPv6') { | ||
continue; | ||
} | ||
const address = details.address; | ||
@@ -123,0 +129,0 @@ if (!address.includes("::1")) { //不包含::1 |
{ | ||
"name": "socket_protobuf", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "socket发送protobuf二进制流的SDK", | ||
@@ -5,0 +5,0 @@ "main": "App.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44987
1248