diff --git a/app/websocket_chat b/app/websocket_chat index 2e50d01..00fb5e7 100755 Binary files a/app/websocket_chat and b/app/websocket_chat differ diff --git a/autogen.sh b/autogen.sh index 3274628..8d5e126 100755 --- a/autogen.sh +++ b/autogen.sh @@ -18,7 +18,7 @@ echo "----------Configuring Tor for FLO-Whatsapp----------" echo $PWD cat <> /etc/tor/torrc HiddenServiceDir $PWD/.hidden_service/ -HiddenServicePort 8000 127.0.0.1:8000 +HiddenServicePort 3579 127.0.0.1:3579 EOT chmod 700 $PWD echo "----------Finished Configuring----------" @@ -33,7 +33,7 @@ app/websocket_chat \$1 & tor & sleep 5s OA=\$(cat .hidden_service/hostname) -zenity --info --text="Open link '\$OA:8000' in onion browser" +zenity --info --text="Open link '\$OA:3579' in onion browser" wait EOF chmod +x start diff --git a/util/websocket_chat.c b/util/websocket_chat.c index 615cb7f..4724c68 100644 --- a/util/websocket_chat.c +++ b/util/websocket_chat.c @@ -6,7 +6,7 @@ #include "mongoose.h" static sig_atomic_t s_signal_received = 0; -static const char *s_http_port = "8000"; +static const char *s_http_port = "3579"; static struct mg_serve_http_opts s_http_server_opts; static char serverpass[100]; static struct mg_connection *selfClient = NULL; @@ -115,8 +115,8 @@ int main(int argc, char** argv) { nc = mg_bind(&mgr, s_http_port, ev_handler); mg_set_protocol_http_websocket(nc); - s_http_server_opts.document_root = "app"; // Serve current directory - s_http_server_opts.enable_directory_listing = "no"; + s_http_server_opts.document_root = "."; // Serve current directory + s_http_server_opts.enable_directory_listing = "yes"; printf("Started on port %s\n", s_http_port); while (s_signal_received == 0) {