@lazycatcloud/lzc-cli 1.2.18 → 1.2.20

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.
@@ -82,7 +82,7 @@ function localIp() {
82
82
 
83
83
  let output = "";
84
84
  if (isMacos) {
85
- const result = spawnSync("sh", ["-c", "ifconfig", "heiyu-0"], {
85
+ const result = spawnSync("sh", ["-c", "ifconfig"], {
86
86
  encoding: "utf-8",
87
87
  });
88
88
  if (result.status != 0 || result.error) {
@@ -102,7 +102,7 @@ function localIp() {
102
102
  }
103
103
  const match = output.match(regex);
104
104
  if (match) {
105
- return match[1];
105
+ return `[${match[1]}]`;
106
106
  } else {
107
107
  logger.debug("get LocalIP environment error", output.stderr);
108
108
  return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-cli",
3
- "version": "1.2.18",
3
+ "version": "1.2.20",
4
4
  "description": "lazycat cloud developer kit",
5
5
  "files": [
6
6
  "template",