Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2117 NutchServer CLI Option for CMD_PORT is incorrect and should be CMD_HOST this closes #63

Lewis John McGibbney3130c36343eb
diff --git a/CHANGES.txt b/CHANGES.txt
index 92787eb13..5ab729249 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Current Development 1.11-SNAPSHOT
+* NUTCH-2117 NutchServer CLI Option for CMD_PORT is incorrect and should be CMD_HOST (zhangmianhongni via lewismc)
+
* NUTCH-2115 - Add total counts to mimetype stats (Jimmy Joyce via lewismc)
* NUTCH-2111 Delete temporary files location for selenium tmp files after driver quits (Kim Whitehall via lewismc)
diff --git a/src/java/org/apache/nutch/service/NutchServer.java b/src/java/org/apache/nutch/service/NutchServer.java
index 16929ace2..b991c3ea6 100644
--- a/src/java/org/apache/nutch/service/NutchServer.java
+++ b/src/java/org/apache/nutch/service/NutchServer.java
@@ -198,7 +198,7 @@ public class NutchServer {
OptionBuilder.withArgName("host");
OptionBuilder.hasOptionalArg();
OptionBuilder.withDescription("The host to bind the Nutch Server to. Default is localhost.");
- options.addOption(OptionBuilder.create(CMD_PORT));
+ options.addOption(OptionBuilder.create(CMD_HOST));
return options;
}