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
7bbf81068b
fix broken EL6 packaging support
Tests show that EL6 is too old to support `%elif` statement (which is very stupid).
And revert dependency `openssl-libs` to `openssl` because of
inconsistent names in EL6.
8 years ago
Rayson zhu
5d85590f7c
support packaging for openSUSE
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
b80c159758
RPM packaing: move .la and .so to devel subpackage
8 years ago
Rayson zhu
156cd88776
check for libsodium, libev, libudns if configured with system library
8 years ago
Max Lv
f14d37f09c
Merge pull request #962 from vfreex/packaging-bash-completion
Package bash completion file
8 years ago
Rayson zhu
9754edda9c
package bash completion files
8 years ago
Rayson zhu
48d159504f
fix -l completion
8 years ago
Rayson zhu
a6ef853e2b
will not print user name
8 years ago
Max Lv
28a61096f3
Merge pull request #959 from vfreex/fix-configure-enable-system-shared-lib
Fix broken `configure --enable-system-shared-lib`
8 years ago
Rayson zhu
54f607e0ec
Fix broken `configure --enable-system-shared-lib`
The following error will occur when configuring with --enable-system-shared-lib:
```
/usr/bin/rm: cannot remove 'libtoolT': No such file or directory
```
This issue is caused by overwriting gnu make variable `RM` with `rm`,
whose default value is `rm -f` (https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html ).
8 years ago
Max Lv
a7350a19b3
Merge pull request #958 from vfreex/fix-completion-ciphers
Bash completion: add missing cipher list
8 years ago
Rayson Zhu
a21f515d37
Bash completion: add missing cipher list
8 years ago
Max Lv
936cbaf4fd
Merge pull request #957 from vfreex/feature-bash-completion
Add bash completion files
8 years ago
Rayson Zhu
cfaadbdd62
Add bash completion files
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
a76f8f46ba
Merge pull request #953 from vfreex/feature-uid
Feature: Support uid for `-a` option.
8 years ago
Max Lv
780b1aeb1a
Merge pull request #952 from vfreex/fix-jconf-parse
Fix config file parsing
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
Max Lv
62aec1e280
exit when running as a nonexistent user and warn when running as root ( #948 )
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
73b4e682a7
Update documents
8 years ago
Max Lv
616de8691b
Fix a typo
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