Commit Graph
1307 Commits
Author SHA1 Message Date
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.
2016-11-25 03:13:40 -06:00
Rayson zhu 5d85590f7c support packaging for openSUSE 2016-11-25 02:13:10 -06:00
Rayson zhu 1c738323a7 Similar fix as #967 2016-11-25 02:11:16 -06:00
Rayson zhu a8fdd77fbf add user config option 2016-11-25 02:10:17 -06:00
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
2016-11-20 03:24:27 -06:00
Max Lv dbc530ccb1 Fix #966 2016-11-20 15:39:07 +08:00
Max Lv c0b26e380e Fix #985 2016-11-20 15:36:21 +08:00
Rayson zhu b80c159758 RPM packaing: move .la and .so to devel subpackage 2016-11-20 00:06:16 -06:00
Rayson zhu 156cd88776 check for libsodium, libev, libudns if configured with system library 2016-11-20 00:05:59 -06:00
Max Lv f14d37f09c Merge pull request #962 from vfreex/packaging-bash-completion
Package bash completion file
2016-11-20 00:05:39 -06:00
Rayson zhu 9754edda9c package bash completion files 2016-11-20 12:58:31 +08:00
Rayson zhu 48d159504f fix -l completion 2016-11-20 01:32:18 +08:00
Rayson zhu a6ef853e2b will not print user name 2016-11-20 01:31:58 +08:00
Max Lv 28a61096f3 Merge pull request #959 from vfreex/fix-configure-enable-system-shared-lib
Fix broken `configure --enable-system-shared-lib`
2016-11-19 06:37:34 -06:00
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).
2016-11-19 19:17:43 +08:00
Max Lv a7350a19b3 Merge pull request #958 from vfreex/fix-completion-ciphers
Bash completion: add missing cipher list
2016-11-18 03:40:12 -06:00
Rayson Zhu a21f515d37 Bash completion: add missing cipher list 2016-11-18 16:19:09 +08:00
Max Lv 936cbaf4fd Merge pull request #957 from vfreex/feature-bash-completion
Add bash completion files
2016-11-18 01:52:52 -06:00
Rayson Zhu cfaadbdd62 Add bash completion files 2016-11-18 15:19:03 +08:00
Max Lv 52e391962f Add option for firewall rules 2016-11-17 15:18:46 +08:00
Max Lv 79a98a66d8 Refine geteuid() 2016-11-16 18:19:51 +08:00
Max Lv a05a64f563 Add missing macro #954 2016-11-16 14:40:09 +08:00
Max Lv 2b7c487b09 Refine #954 2016-11-16 14:38:23 +08:00
Max Lv 6d9331a56d Fix #954 2016-11-16 14:04:57 +08:00
Max Lv a76f8f46ba Merge pull request #953 from vfreex/feature-uid
Feature: Support uid for `-a` option.
2016-11-15 22:03:58 -06:00
Max Lv 780b1aeb1a Merge pull request #952 from vfreex/fix-jconf-parse
Fix config file parsing
2016-11-15 22:03:42 -06:00
Max Lv 12612c6395 Refine key string 2016-11-16 11:08:02 +08:00
Rayson zhu 99a1ece116 Feature: uid support in run_as 2016-11-16 10:45:15 +08:00
Yuxiang Zhu 78b7afb9ac ss_strndup will fail if insufficient memory was available 2016-11-16 10:26:25 +08:00
Rayson zhu dbf00467e0 Fix read_jconf
1. a memory leak
2. missing type check
2016-11-16 10:19:45 +08:00
Max Lv c6876b0707 Refine cache replacing 2016-11-15 13:44:47 +08:00
Max Lv 62aec1e280 exit when running as a nonexistent user and warn when running as root (#948) 2016-11-14 21:06:04 -06:00
Rayson Zhu 07d2b1a005 exit when running as a nonexistent user and warn when running as root 2016-11-14 21:14:06 +08:00
Rayson Zhu 1e8a631885 fix permission check on operating iptables (#947) 2016-11-14 04:47:33 -06:00
Rayson Zhu d1765df9f9 support ipv6_first option in config file (#946) 2016-11-13 23:32:43 -06:00
Max Lv 73b4e682a7 Update documents 2016-11-12 19:23:18 +08:00
Max Lv 616de8691b Fix a typo 2016-11-12 19:16:46 +08:00
Max Lv f38aedc71a Refine the ipv6first resolving 2016-11-12 11:15:32 +08:00
Max Lv 5cd294879b Add -6 option for #942 2016-11-12 11:01:05 +08:00
Max Lv f64cb0b0ca Refine the timer of traffic stat 2016-11-12 10:18:53 +08:00
Max Lv a0151422eb Fix the traffic counter in UDP mode 2016-11-12 09:58:06 +08:00
Max Lv 39436d7618 Refine set_linger 2016-11-11 18:35:44 +08:00
Max Lv 1ed725daf8 Refine APIs for auto-blocking 2016-11-11 16:38:13 +08:00
Max Lv 05450b51d4 Refine #940 2016-11-11 16:29:04 +08:00
Max Lv ff8684bcd5 Avoid too many forks 2016-11-11 10:35:59 +08:00
Max Lv 604b5ef6ea Revert to getuid() 2016-11-10 17:39:49 +08:00
Max Lv 87b01a14d5 Fix #939 2016-11-10 17:22:03 +08:00
Max Lv cb0cc25fd9 Fix a typo 2016-11-10 15:25:53 +08:00
Max Lv b136d6c6d3 Fix #938 2016-11-10 14:51:24 +08:00
Max Lv c35b143282 Suppress output of commands 2016-11-10 13:13:02 +08:00