zfl9
78784507f1
add `tcp_tproxy` option, use tproxy instead of redirect (tcp)
4 years ago
Max Lv
25be24c01f
Align the report format for UDP packet
4 years ago
Max Lv
e8ca659cea
report suspicious UDP packet for fail2ban
4 years ago
DDoSolitary
93336adf66
Fix static linking issues on Windows.
5 years ago
DDoSolitary
f1f3e9d6ca
Fix support for building with CMake and MinGW.
5 years ago
root
02f25e588c
add ss-manager read manager_address from config.json
5 years ago
Max Lv
aa9fe8cceb
Fix #2692
5 years ago
Max Lv
33a1932023
Fix #2687
5 years ago
Jamis Hoo
bbb2849b60
Also apply LIB_ONLY for shared library, fix #2443
5 years ago
Jamis Hoo
138186b3db
Add include_directories property for shared_libraries
5 years ago
ideal
af722a4b92
Fix a tiny memory leak
5 years ago
Max Lv
64d3235c67
Fix #2620
5 years ago
Max Lv
8c251b2bc5
Fix build
5 years ago
Mygod
1c818ebca7
Fix build
5 years ago
Mygod
355adddff1
Remove unused is_remote_dns option
5 years ago
Mygod
301fea635b
Remove sniparser
5 years ago
babarosaM33
81bbd98d8b
udprelay: exclude udp remote_recv_sendto buff full
before:
udp send buff full would not reset timeout trigger
after:
fix it
5 years ago
babarosaM33
a5111fe32f
updrelay: cleanup
5 years ago
babarosaM33
a5005664a7
ppbloom: save free() and subsequent init() overhead
init utilizes calloc which malloc and memset.
need cherry-pick commit of libbloom
5 years ago
babarosaM33
88c4d2aaab
crypto: lower bloom filter error rate
before patch:
full bloom filter error rate before reset 1-(1-1e-6)^5e5=1-0.606=0.394
after patch:
1-(1-1e-10)^5e5=1-0.99995=5e-5
5 years ago
babarosaM33
30d5b85fe7
Revert "ppbloom:remove unnecessay bloom_check"
ppbloom_add only checks current bloom filter not both PING PONG filters
This reverts commit 9ae59819be
.
5 years ago
kuangniu
0f87d7cb68
Fix sockopt level.
5 years ago
Max Lv
4214894f5d
Fix a typo
5 years ago
Max Lv
4f577a0d31
Fix #2600
5 years ago
Max Lv
d31fba3deb
Fix #2599
5 years ago
babarosaM33
8c03d25314
udprelay: fix more tos
5 years ago
babarosaM33
247d53098c
server: replace memmove with idx
5 years ago
babarosaM33
4d617adfb0
refine tos setsockopt in redir and udprelay
make tos setup working at ipv4 and ipv6
5 years ago
babarosaM33
b48dcddc6c
server: fix setTosFromConnmark typo
Server made a connection to remote, remote replied with that connection.
nf_conntrack module would not check reply-dst and reply-src by default.
more information please refer to https://www.spinics.net/lists/netfilter/msg57842.html
As a result, src and dst should be swapped to make nf_conntrack find the connection.
5 years ago
babarosaM33
3908f3ac85
crypto: md5 hash works without hmac mode
setup mbedtls_md_context_t with hmac disabled to save some memory.
5 years ago
babarosaM33
9576dcea54
initialize after pass check
if check failes, no need to initialize crypto.
5 years ago
babarosaM33
9ae59819be
ppbloom:remove unnecessay bloom_check
bbloom_add and bbloom_check are in fact the same function.
let's make bbloom_add return collision information.
5 years ago
Mygod
80b887d16e
Warn users when using stream ciphers
5 years ago
babarosaM33
7fe555c756
Remove unnecessary memmove
Before patch, after one chunk decoded, we do a memmove.
After patch, after all complete chunk decoded, we do a memmove.
5 years ago
Roger Shimizu
a7d57ab9d5
Fix of PATH_MAX for GNU/Hurd
PATH_MAX is not defined on each platform, and should be avoided.
Info:
- https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
- https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL
5 years ago
igor
0b737a9525
Fix redir default cipher
5 years ago
eric
16bd9af3a4
Fix QoS
5 years ago
Max Lv
6d73201b9a
Fix #2539
5 years ago
Max Lv
748e6f3824
Refine #2537
5 years ago
Max Lv
ce71f49af8
Fix #2537
5 years ago
Max Lv
1ba753adaa
Fix #2536
5 years ago
Max Lv
22d5e59972
Remove request timeout
5 years ago
Max Lv
29936626b2
Refine the timeout logic
5 years ago
Max Lv
5da991a88c
Refine the handling of fragment request
5 years ago
RJ Trujillo
7132ff1b7c
cache: Remove unused return from 'cache_key_exist'
If 'tmp' isn't accessed, 0 is returned by the function anyway. This
is a duplicate case therefore is not needed.
Signed-off-by: RJ Trujillo <certifiedblyndguy@gmail.com>
5 years ago
Max Lv
e911625696
Revert "Add echo for stat API"
This reverts commit 94dc47da9d
.
Fix #2477 .
5 years ago
Max Lv
9109b63aaa
Avoid confusion of the return value of aead_cipher_decrypt()
5 years ago
Max Lv
313b9a7086
Refine #2463 , set default min timeout to 24h
5 years ago
Max Lv
03fb8c9f74
Revert "Add option '--long-idle' for server"
This reverts commit b4cda9dd42
.
5 years ago
lixingcong
b4cda9dd42
Add option '--long-idle' for server
Restore the default behavior handling timeout, make an option to enable
long idle connections.
Previously discussion:
https://github.com/shadowsocks/shadowsocks-libev/pull/2421
https://github.com/shadowsocks/shadowsocks-libev/issues/2427
5 years ago