Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added a script which retrieves the public ip of the local peer and prints it out to the terminal using the new servlet /yacy/seedlist.xml. just call: bin/myip.sh

Michael Peter Christend1604258c114
diff --git a/bin/myip.sh b/bin/myip.sh
new file mode 100755
index 000000000..68d8ac569
--- /dev/null
+++ b/bin/myip.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+cd "`dirname $0`"
+./apicall.sh "/yacy/seedlist.xml?my=" | awk '/<IP>/{ gsub("<IP>","" );gsub("<\/IP>","" ); print $0 }' | awk '{print $1}';