Skip to content

Commit

Permalink
change default http port to 60210, fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ committed Sep 8, 2009
1 parent a9cf118 commit 419f2cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 3 additions & 1 deletion includes/playdar/config.hpp
Expand Up @@ -31,6 +31,8 @@
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>


#define DEFAULT_HTTP_PORT 60210

namespace playdar { namespace playdar {


// wrapper around JSON config file // wrapper around JSON config file
Expand Down Expand Up @@ -86,7 +88,7 @@ class Config
std::string httpbase() std::string httpbase()
{ {
std::ostringstream s; 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(); return s.str();
} }


Expand Down
9 changes: 0 additions & 9 deletions src/main.cpp
Expand Up @@ -189,15 +189,6 @@ int main(int ac, char *av[])
("version,v", "print version string") ("version,v", "print version string")
("help,h", "print this message") ("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; po::options_description cmdline_options;
cmdline_options.add(generic); cmdline_options.add(generic);


Expand Down

0 comments on commit 419f2cc

Please sign in to comment.