Changing port to 3579

This commit is contained in:
sairajzero 2019-07-07 20:24:50 +05:30
parent abe14da22f
commit 78b849a698
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -18,7 +18,7 @@ echo "----------Configuring Tor for FLO-Whatsapp----------"
echo $PWD
cat <<EOT >> /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

View File

@ -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) {