Skip to content

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

add. use host port parameter in YaCyApp

regerf07392ff17dd
diff --git a/source/net/yacy/gui/InfoPage.java b/source/net/yacy/gui/InfoPage.java
index 6f6538acf..fcfc818a3 100644
--- a/source/net/yacy/gui/InfoPage.java
+++ b/source/net/yacy/gui/InfoPage.java
@@ -115,7 +115,7 @@ public class InfoPage implements Layout {
String infotext =
"This is a YaCy GUI wrappper.\n\n" +
"The YaCy administration interface is in your browser\n" +
- "just open http://localhost:8090\n\n" +
+ "just open http://" + this.host + ":" + this.port + "\n\n" +
"You may also enter a search term and press enter,\n" +
"then the query will be opened in your browser\n";
if (OS.isMacArchitecture) infotext += "\nThe application data on Mac is stored at ~Library/YaCy/\n";
diff --git a/source/net/yacy/gui/YaCyApp.java b/source/net/yacy/gui/YaCyApp.java
index 924f96683..c29127f6b 100644
--- a/source/net/yacy/gui/YaCyApp.java
+++ b/source/net/yacy/gui/YaCyApp.java
@@ -96,7 +96,7 @@ public class YaCyApp {
}
}
- public static void start(String host, int port) {
+ public static void start(final String host, final int port) {
Switchboard.startInfoUpdater();
operation = new Op(app, host, port);
@@ -137,7 +137,7 @@ public class YaCyApp {
@Override
public void run() {
Thread.currentThread().setName("YaCyApp");
- app = new Application("YaCy GUI", operation, menues, new InfoPage("localhost", 8090));
+ app = new Application("YaCy GUI", operation, menues, new InfoPage(host, port));
app.setLocationRelativeTo(null);
app.setVisible(true);
}
diff --git a/source/net/yacy/gui/framework/Switchboard.java b/source/net/yacy/gui/framework/Switchboard.java
index b1e52255e..a15397e55 100644
--- a/source/net/yacy/gui/framework/Switchboard.java
+++ b/source/net/yacy/gui/framework/Switchboard.java
@@ -153,6 +153,7 @@ public class Switchboard {
* this is not reversible.
*/
public static void shutdown() {
+ if (InfoBox != null) InfoBox.setText("waiting for shutdown process to complete ...");
shallrun = false;
}