diff --git a/src/legacy/api/DeviceAPI.cpp b/src/legacy/api/DeviceAPI.cpp index fbc0677c..3a4dd408 100644 --- a/src/legacy/api/DeviceAPI.cpp +++ b/src/legacy/api/DeviceAPI.cpp @@ -54,7 +54,7 @@ Local DeviceClass::getIP() { Player* player = getPlayer(); if (!player) return Local(); - return String::newString(player->getNetworkIdentifier().getAddress()); + return String::newString(player->getNetworkIdentifier().getIPAndPort()); } CATCH("Fail in GetIP!") } @@ -168,4 +168,4 @@ Local DeviceClass::getClientId() { // return Number::newNumber((int)player->getPlayMode()); // } // CATCH("Fail in getPlayMode!") -// } \ No newline at end of file +// } diff --git a/xmake.lua b/xmake.lua index aa514790..9bc0ccb2 100644 --- a/xmake.lua +++ b/xmake.lua @@ -7,7 +7,7 @@ add_requires( "fmt 10.1.1", "legacymoney 0.2.0", "legacyparticleapi 0.2.0", - "levilamina 0.7.1", + "levilamina 0.7.2", "lightwebsocketclient 1.0.0", "magic_enum v0.9.0", "nlohmann_json 3.11.2",