Commit 47c92d94 by Michael Pastushkov

fix

parent c807aa36
#!/bin/sh #!/bin/sh
make clean && make && ./bytevia --local-port=1948 --remote-host=127.0.0.1 --remote-port=1984 --mode=server make clean && make && ./bytevia --local-port=1984 --remote-host=127.0.0.1 --remote-port=1948 --mode=server
\ No newline at end of file \ No newline at end of file
#!/bin/sh #!/bin/sh
make clean && make && ./bytevia --local-port=1984 --remote-host=127.0.0.1 --remote-port=1984 --mode=server --proto=udp --secret=52341 make clean && make && ./bytevia --local-port=1984 --remote-host=127.0.0.1 --remote-port=1948 --mode=server --proto=udp --secret=52341
\ No newline at end of file \ No newline at end of file
...@@ -435,7 +435,7 @@ Options:\n\ ...@@ -435,7 +435,7 @@ Options:\n\
--mode=MODE client [default] or server\n\ --mode=MODE client [default] or server\n\
--encrypt=ALG 0 - no encryption, 1 - time-based obfuscation\n\ --encrypt=ALG 0 - no encryption, 1 - time-based obfuscation\n\
--secret number used for encryption, must the same same client and server\n\ --secret number used for encryption, must the same same client and server\n\
--proto=PROTO tcp [default] or udp\n\ --proto=PROTO udp [default] or tcp\n\
\n"); \n");
} }
...@@ -462,7 +462,7 @@ void init_options() { ...@@ -462,7 +462,7 @@ void init_options() {
options.remote_port = REMOTE_PORT; options.remote_port = REMOTE_PORT;
options.buffer_size = BUFFER_SIZE; options.buffer_size = BUFFER_SIZE;
options.bind_address = "0.0.0.0"; options.bind_address = "0.0.0.0";
options.proto = SOCK_STREAM; options.proto = PROTO;
options.log = 1; options.log = 1;
options.encrypt = 1; options.encrypt = 1;
options.stay_alive = 1; options.stay_alive = 1;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define NAME "bytevia" #define NAME "bytevia"
#define VERSION "1.0" #define VERSION "1.0"
#define PROTO SOCK_DGRAM
#define REMOTE_HOST "p4pn.net" #define REMOTE_HOST "p4pn.net"
#define REMOTE_PORT 1984 #define REMOTE_PORT 1984
#define LOCAL_PORT 1948 #define LOCAL_PORT 1948
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment