breakwa11
56af51b43c
log TCP header if parse error
9 years ago
breakwa11
5249fd528c
add FORCE_NEW_PROTOCOL switch
9 years ago
breakwa11
61959945c3
revert encrypt.py
new obfs header
9 years ago
breakwa11
928c26e4f2
fix some exceptions
9 years ago
breakwa11
9defba2d36
merge master 20150810
9 years ago
breakwa11
e5e3102591
remove debug code
add AddressMap for udp
9 years ago
breakwa11
a9ea55c396
new UDP over TCP protocol, merge master
9 years ago
breakwa11
469d9f7bfa
merge master
9 years ago
breakwa11
69d369268a
update run.sh, set working dir
9 years ago
breakwa11
f78f5b56e3
client_key change
9 years ago
breakwa11
3af426b13b
remove tail
9 years ago
breakwa11
543a5903a1
encrypt speed test
10 years ago
breakwa11
ad588af75f
single user script
10 years ago
breakwa11
d4ca0d281c
always UDP on
random length TCP/UDP packet
10 years ago
breakwa11
28318b5c1a
double UDP sockets for IPv4 and IPv6
10 years ago
breakwa11
1f530ff8f1
fix udp ipv6
10 years ago
breakwa11
17122c299c
fix udp ipv6
10 years ago
breakwa11
4b52f83376
udp ipv6
10 years ago
breakwa11
07dc98f60d
udp fix sendto argv
10 years ago
breakwa11
565812ae15
elaborate reasons of header parsing failure
10 years ago
breakwa11
1e71fba852
drop UDP message if frag != 0
10 years ago
breakwa11
c27f6283a2
UDP remote DNS resolve
10 years ago
breakwa11
f2efed9608
add manyuser branch
support udp over tcp
support chacha20 & salsa20 (base on libsodium)
10 years ago
clowwindy
e74ae193d0
elaborate reasons of header parsing failure
10 years ago
clowwindy
16db66675b
optimize LRUCache
10 years ago
clowwindy
082c8a80f4
fix duplicated close in LRUCache
close #324
10 years ago
Kim Wong
e17279e5bf
remove duplicated line (refer line 221)
10 years ago
lazybios
d3831bef8c
remove duplicate code from shell.py
10 years ago
Felix Yan
edb7822a7b
convert remote_address to str so it will be printed more correctly on python 3
10 years ago
clowwindy
d774286dc0
rename utils module into shell
Since utils is ambiguous, we want to give the module a more
clear role.
10 years ago
clowwindy
cb7062e1c1
implement utils.print_exception()
Previously we used logging.error(e) and traceback.print_exc()
to output error stack trace. The problem is, we want to
output the stack trace only when verbose > 0. The if statement
scattered around the code. So we replaced them with the new
utils.print_exception() call.
10 years ago
clowwindy
dfd81af844
support --version
10 years ago
clowwindy
783a6ef7f2
support multiple server ip on client side
10 years ago
clowwindy
e71ce6c758
fix server check
10 years ago
clowwindy
e564f17505
fix bytes in utils
10 years ago
clowwindy
6d09cd21ca
fix openssl
10 years ago
clowwindy
318d88ec89
use string more
10 years ago
clowwindy
ce805f0aea
license under Apache License v2.0
10 years ago
clowwindy
0cd261dd10
catch KeyError
10 years ago
clowwindy
1c81465436
fix command line
10 years ago
clowwindy
73f21ffbf6
do not check config for daemon stop
10 years ago
clowwindy
7aa37cad8e
check cipher before daemon start
fix #280
10 years ago
clowwindy
ae99698b4e
implement --user
fix @278
10 years ago
clowwindy
453a9c61a6
show CIDR error more friendly
10 years ago
Sunny
a0aa9173a8
Fix for Python3 map changed behavior
In Python3, map returns an iterator instead of list in Python2,
which cause map "lazier" than before, wrap with list() force it running.
10 years ago
Sunny
79b9b53dbe
Never process empty string and prevent infinite loop
If user provide an empty string as network range, inet_pton will
treate it as an IPv6 unspecified address, it seems a bug but I
can't confirm. Then empty string will be converted to 0, 0 & 1
always be zero, so it caused dead loop.
10 years ago
Sunny
070108f78b
Disable forbidden ip feature for local shadowsocks
Since forbidden ip is server-side only, disable it for local-side.
This commit also supress warning about IPv6 loopback because I can
confirm ::1/128 is the only loopback address, not like IPv4.
10 years ago
Sunny
b11d848986
Fix for Python3 lambda behavior change
In Python3, lambda no longer support use tuple as syntax.
So, ugly changes is inevitable.
10 years ago
Sunny
aa28796524
Make common fit PEP8
10 years ago
Sunny
8af359ae05
Use IPNetwork supporting forbidden ip feature in config utils
This commit also make "forbidden_ip" field available in config file.
If no forbidden ip specified in command line and config file,
default to "127.0.0.0/8,::1".
10 years ago