summaryrefslogtreecommitdiffstats
path: root/ncat/scripts/whatismyip.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ncat/scripts/whatismyip.lua')
-rw-r--r--ncat/scripts/whatismyip.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/ncat/scripts/whatismyip.lua b/ncat/scripts/whatismyip.lua
new file mode 100644
index 0000000..13ade22
--- /dev/null
+++ b/ncat/scripts/whatismyip.lua
@@ -0,0 +1,4 @@
+--A "what is my IP" service code. Since most web browsers put up with servers
+--not sending proper HTTP headers, you can simply query the service with it.
+
+print(os.getenv "NCAT_REMOTE_ADDR")