Changing port to 3579
This commit is contained in:
parent
abe14da22f
commit
78b849a698
Binary file not shown.
@ -18,7 +18,7 @@ echo "----------Configuring Tor for FLO-Whatsapp----------"
|
|||||||
echo $PWD
|
echo $PWD
|
||||||
cat <<EOT >> /etc/tor/torrc
|
cat <<EOT >> /etc/tor/torrc
|
||||||
HiddenServiceDir $PWD/.hidden_service/
|
HiddenServiceDir $PWD/.hidden_service/
|
||||||
HiddenServicePort 8000 127.0.0.1:8000
|
HiddenServicePort 3579 127.0.0.1:3579
|
||||||
EOT
|
EOT
|
||||||
chmod 700 $PWD
|
chmod 700 $PWD
|
||||||
echo "----------Finished Configuring----------"
|
echo "----------Finished Configuring----------"
|
||||||
@ -33,7 +33,7 @@ app/websocket_chat \$1 &
|
|||||||
tor &
|
tor &
|
||||||
sleep 5s
|
sleep 5s
|
||||||
OA=\$(cat .hidden_service/hostname)
|
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
|
wait
|
||||||
EOF
|
EOF
|
||||||
chmod +x start
|
chmod +x start
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "mongoose.h"
|
#include "mongoose.h"
|
||||||
|
|
||||||
static sig_atomic_t s_signal_received = 0;
|
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 struct mg_serve_http_opts s_http_server_opts;
|
||||||
static char serverpass[100];
|
static char serverpass[100];
|
||||||
static struct mg_connection *selfClient = NULL;
|
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);
|
nc = mg_bind(&mgr, s_http_port, ev_handler);
|
||||||
mg_set_protocol_http_websocket(nc);
|
mg_set_protocol_http_websocket(nc);
|
||||||
s_http_server_opts.document_root = "app"; // Serve current directory
|
s_http_server_opts.document_root = "."; // Serve current directory
|
||||||
s_http_server_opts.enable_directory_listing = "no";
|
s_http_server_opts.enable_directory_listing = "yes";
|
||||||
|
|
||||||
printf("Started on port %s\n", s_http_port);
|
printf("Started on port %s\n", s_http_port);
|
||||||
while (s_signal_received == 0) {
|
while (s_signal_received == 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user