summaryrefslogtreecommitdiff
path: root/src/dcchelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dcchelper.c')
-rw-r--r--src/dcchelper.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/dcchelper.c b/src/dcchelper.c
deleted file mode 100644
index bf8f28b..0000000
--- a/src/dcchelper.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdio.h>
-
-int main(int argc,char *argv[]) {
- char *wanip;
- if(argc < 2) {
- return printf("usage: %s [IP]\n",argv[0]);
- }
- if(!strncmp(argv[1],"127.",4)) {
- wanip="127.0.0.1";
- }
- else if(!strncmp(argv[1],"1.",2)) {
- wanip="1.41.41.1";
- }
- else if(!strncmp(argv[1],"192.168.0.",10)) {
- wanip="192.168.0.2";
- } else {
- wanip="98.159.69.172";
- }
- return printf("%u\n",htonl(inet_addr(wanip)));
-}