summaryrefslogtreecommitdiff
path: root/ip/ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip/ip.c')
-rw-r--r--ip/ip.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/ip/ip.c b/ip/ip.c
new file mode 100644
index 0000000..fd68cf4
--- /dev/null
+++ b/ip/ip.c
@@ -0,0 +1,17 @@
+/* $Id$ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+int
+main()
+{
+ char *ra;
+
+ printf("Content-type: %s\r\n\r\n", "text/plain");
+
+ if (ra = getenv("REMOTE_ADDR"))
+ printf("%s\n", ra);
+
+ return 0;
+}