Max Lv
31a88839d0
Handle large HTTP header properly
8 years ago
Syrone Wong
e6c0780435
memset zero before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Max Lv
dafadaa621
Fix #990
8 years ago
Syrone Wong
9db8c3abe8
zeroize some structs before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
cbe12c30fe
Update uthash to latest
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Max Lv
b7e5a97a74
Fix building error of ss-redir
8 years ago
Max Lv
25cc062e5d
Use cork_container_of instead
8 years ago
Max Lv
65843154cf
Fix building error
8 years ago
Max Lv
a63a33861f
Add container_of
8 years ago
Syrone Wong
baff29e970
Fix issues found by cppcheck
- GNU treats void* as char* when doing pointer arithmetic, so let's make it clear
- Fix memory leak, save copy from malloc() and pass the original pointer to free()
- minor type mismatches
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Max Lv
8b358c59c7
Disable resolution retry after startup
8 years ago
Syrone Wong
43a236d3ca
Clarify calculation precedence for '&' and '?' ( #986 )
8 years ago
Max Lv
a987783b2a
Fix a potential memory leak
8 years ago
Max Lv
24b407c37d
Fix #981
8 years ago
Rayson Zhu
135ceedb14
revert `pwd->name` to `user` when error occurs ( #979 )
8 years ago
Rayson Zhu
4034190b15
Change supplementary groups after setgid. ( #977 )
8 years ago
Max Lv
fd388e0502
Fix #972
8 years ago
Rayson zhu
1c738323a7
Similar fix as #967
8 years ago
Rayson zhu
a8fdd77fbf
add `user` config option
8 years ago
tim-le
aca5f5ddb4
Fix #966 again ( #967 )
* SO_REUSEADDR for remote sockfd
avoid ERROR: bind_to_address: Address already in use
* set addr->sin_port to be 0
* Update server.c
* Update server.c
* Update server.c
* Update server.c
* Update server.c
* Update server.c
* Update server.c
8 years ago
Max Lv
dbc530ccb1
Fix #966
8 years ago
Max Lv
c0b26e380e
Fix #985
8 years ago
Rayson zhu
a6ef853e2b
will not print user name
8 years ago
Max Lv
52e391962f
Add option for firewall rules
8 years ago
Max Lv
79a98a66d8
Refine geteuid()
8 years ago
Max Lv
a05a64f563
Add missing macro #954
8 years ago
Max Lv
2b7c487b09
Refine #954
8 years ago
Max Lv
6d9331a56d
Fix #954
8 years ago
Max Lv
12612c6395
Refine key string
8 years ago
Rayson zhu
99a1ece116
Feature: uid support in run_as
8 years ago
Yuxiang Zhu
78b7afb9ac
ss_strndup will fail if insufficient memory was available
8 years ago
Rayson zhu
dbf00467e0
Fix read_jconf
1. a memory leak
2. missing type check
8 years ago
Max Lv
c6876b0707
Refine cache replacing
8 years ago
Rayson Zhu
07d2b1a005
exit when running as a nonexistent user and warn when running as root
8 years ago
Rayson Zhu
1e8a631885
fix permission check on operating iptables ( #947 )
8 years ago
Rayson Zhu
d1765df9f9
support ipv6_first option in config file ( #946 )
8 years ago
Max Lv
f38aedc71a
Refine the ipv6first resolving
8 years ago
Max Lv
5cd294879b
Add -6 option for #942
8 years ago
Max Lv
f64cb0b0ca
Refine the timer of traffic stat
8 years ago
Max Lv
a0151422eb
Fix the traffic counter in UDP mode
8 years ago
Max Lv
39436d7618
Refine set_linger
8 years ago
Max Lv
1ed725daf8
Refine APIs for auto-blocking
8 years ago
Max Lv
05450b51d4
Refine #940
8 years ago
Max Lv
ff8684bcd5
Avoid too many forks
8 years ago
Max Lv
604b5ef6ea
Revert to getuid()
8 years ago
Max Lv
87b01a14d5
Fix #939
8 years ago
Max Lv
cb0cc25fd9
Fix a typo
8 years ago
Max Lv
b136d6c6d3
Fix #938
8 years ago
Max Lv
c35b143282
Suppress output of commands
8 years ago
Max Lv
d5e1c4308d
Refine IPv6 handling in ACL
8 years ago