summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/NetworkTest/NetworkTest.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-02-22 10:51:16 +0100
committerMattes D <github@xoft.cz>2015-02-22 10:51:16 +0100
commitc758482ece08e7b393e343464bf9a2c2d74bf34f (patch)
tree0aa3dc3c9ce3715215f3b14cbe80c188a7047891 /MCServer/Plugins/NetworkTest/NetworkTest.lua
parentDoor handler: Removed needless check. (diff)
downloadcuberite-c758482ece08e7b393e343464bf9a2c2d74bf34f.tar
cuberite-c758482ece08e7b393e343464bf9a2c2d74bf34f.tar.gz
cuberite-c758482ece08e7b393e343464bf9a2c2d74bf34f.tar.bz2
cuberite-c758482ece08e7b393e343464bf9a2c2d74bf34f.tar.lz
cuberite-c758482ece08e7b393e343464bf9a2c2d74bf34f.tar.xz
cuberite-c758482ece08e7b393e343464bf9a2c2d74bf34f.tar.zst
cuberite-c758482ece08e7b393e343464bf9a2c2d74bf34f.zip
Diffstat (limited to 'MCServer/Plugins/NetworkTest/NetworkTest.lua')
-rw-r--r--MCServer/Plugins/NetworkTest/NetworkTest.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/MCServer/Plugins/NetworkTest/NetworkTest.lua b/MCServer/Plugins/NetworkTest/NetworkTest.lua
index daab0a4bf..22056d4e9 100644
--- a/MCServer/Plugins/NetworkTest/NetworkTest.lua
+++ b/MCServer/Plugins/NetworkTest/NetworkTest.lua
@@ -288,6 +288,19 @@ end
+function HandleConsoleNetIps(a_Split)
+ local Addresses = cNetwork:EnumLocalIPAddresses()
+ LOG("IP addresses enumerated, " .. #Addresses .. " found")
+ for idx, addr in ipairs(Addresses) do
+ LOG(" IP #" .. idx .. ": " .. addr)
+ end
+ return true
+end
+
+
+
+
+
function HandleConsoleNetLookup(a_Split)
-- Get the name to look up:
local Addr = a_Split[3] or "google.com"