Permalink
Browse files

change default http port to 60210, fixes #33

  • Loading branch information...
1 parent a9cf118 commit 419f2ccebcee94835eec1ae1fa9c0d38dfca98ca @RJ committed Sep 8, 2009
Showing with 3 additions and 10 deletions.
  1. +3 −1 includes/playdar/config.hpp
  2. +0 −9 src/main.cpp
View
4 includes/playdar/config.hpp
@@ -31,6 +31,8 @@
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
+#define DEFAULT_HTTP_PORT 60210
+
namespace playdar {
// wrapper around JSON config file
@@ -86,7 +88,7 @@ class Config
std::string httpbase()
{
std::ostringstream s;
- s << "http://127.0.0.1" << ":" << get<int>("http_port", 8888);
+ s << "http://127.0.0.1" << ":" << get<int>("http_port", DEFAULT_HTTP_PORT);
return s.str();
}
View
9 src/main.cpp
@@ -189,15 +189,6 @@ int main(int ac, char *av[])
("version,v", "print version string")
("help,h", "print this message")
;
-/*
- ("name", po::value<string>(),
- "Name used for your collection on the network")
- ("db", po::value<string>(),
- "Path to your database file")
- ("http_port", po::value<int>(&opt)->default_value(8888),
- "Port used for local webserver")
- ;
-*/
po::options_description cmdline_options;
cmdline_options.add(generic);

0 comments on commit 419f2cc

Please sign in to comment.