Skip to content

Commit f7bcafe

Browse files
committed
fix: fix getIP
1 parent 2744ca0 commit f7bcafe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/legacy/api/DeviceAPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Local<Value> DeviceClass::getIP() {
5454
Player* player = getPlayer();
5555
if (!player) return Local<Value>();
5656

57-
return String::newString(player->getNetworkIdentifier().getAddress());
57+
return String::newString(player->getNetworkIdentifier().getIPAndPort());
5858
}
5959
CATCH("Fail in GetIP!")
6060
}
@@ -168,4 +168,4 @@ Local<Value> DeviceClass::getClientId() {
168168
// return Number::newNumber((int)player->getPlayMode());
169169
// }
170170
// CATCH("Fail in getPlayMode!")
171-
// }
171+
// }

xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ add_requires(
77
"fmt 10.1.1",
88
"legacymoney 0.2.0",
99
"legacyparticleapi 0.2.0",
10-
"levilamina 0.7.1",
10+
"levilamina 0.7.2",
1111
"lightwebsocketclient 1.0.0",
1212
"magic_enum v0.9.0",
1313
"nlohmann_json 3.11.2",

0 commit comments

Comments
 (0)