Skip to content

Commit

Permalink
Added #define for server port
Browse files Browse the repository at this point in the history
  • Loading branch information
iUltimateLP committed Apr 30, 2021
1 parent a61e360 commit 7bc7e0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include "server.hpp"
#include "albumwrapper.hpp"

// Port the server should run on
#define SERVER_PORT 1234

// Loads up and initializes all libnx modules needed
void initSwitchModules()
{
Expand Down Expand Up @@ -131,7 +134,7 @@ int main(int argc, char* argv[])

// Create the web server for hosting the web interface, add romfs:/www as a mount point for
// static web assets and start it
nxgallery::WebServer* webServer = new nxgallery::WebServer(1234);
nxgallery::WebServer* webServer = new nxgallery::WebServer(SERVER_PORT);
webServer->AddMountPoint("romfs:/www");
webServer->Start();

Expand Down

0 comments on commit 7bc7e0b

Please sign in to comment.