Skip to content

Commit

Permalink
Only accept connections from localhost (I think).
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarboms committed Feb 26, 2016
1 parent 9a6e473 commit ed67449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions foo_rest/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ void playbackCommand(HttpServer::Response& response, std::shared_ptr<HttpServer:
Server::Server()
: server(9998)
{
server.config.address = "127.0.0.1";
server.resource["^/playlists$"]["GET"] = &getPlaylists;
server.resource["^/playlist/([0-9]+)$"]["GET"] = &getPlaylistContent;

Expand Down

0 comments on commit ed67449

Please sign in to comment.