Commit Graph
1782 Commits
Author SHA1 Message Date
Yuxiang Zhu 6e99ee00db RPM packaging: replace udns with c-ares (#1662) 2017-09-04 15:27:04 +08:00
Howard Liu 7525d518de Fixed Debian Package Control (#1656)
Removed dependency libudns-dev, added libc-ares-dev
2017-09-01 09:21:23 +08:00
Max Lv 7b7223da44 Fix cmake files 2017-08-31 13:55:24 +08:00
Max Lv 0ec3e648bf Update .travis 2017-08-31 13:53:08 +08:00
Max Lv ede744ae7c Add c-ares support (#1655)
* Replace udns with c-ares

* Get IO loop work

* Clean up

* Avoid initializing nameservers each query

* Add ARES_OPT_SERVERS

* Refine resolv_cancel

* Fix a memory leak

* Replace udns.h with ares.h

* Fix all inet_* fucntions

* Clean up

* Enable servers_ports when VERSION_MINOR >= 11

* Avoid ares_inet_XtoX

* Handle multipe nameservers correctly

* Use ares_set_servers for IPv4 and IPv6 mixed list

* Refine c-ares for udprelay

* Refine ares_set_servers()

* Refine the timer based on ares_timeout

* Avoid resolv_cancel

* Fix an issue of null pointer

* Fix another null pointer issue

* Refine the order of resolv_shutdown

* Fix the corrupted ev io
2017-08-31 09:16:07 +08:00
Tony Lian 9c26318459 Update README.md
Add a newline to fix the repo file not found error
2017-08-27 09:16:28 +08:00
Xingwang Liao f1fde57111 Redirect 'INFO' log to stdout
Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
2017-08-24 17:48:02 +08:00
Yuxiang Zhu a489834204 Refine SPEC for RPM packages
This change includes:

1. Move shared library `shadowsocks-libev.so.*` to an package `libshadowsocks-libev`
and rename package `shadowsocks-libev-devel` to `libshadowsocks-libev-devel`
to reconcile with the deb packages.
2. Add a new package `shadowsocks-libev-zsh-completion`.
3. Run `setcap` after installation (similar to #1119).
4. Remove ss-nat because it is designed for OpenWrt/LEDE.
5. Auto restart instantiated services after update and stop/disable instantiated
services after uninstallation.
2017-08-23 16:09:49 +08:00
Yuxiang Zhu feeaff85e1 Provides separated service files for RPM packages
As discussed with @librehat in #1604, maintaining a separate set of systemd
files for RPM distributions will be convenient to build on Copr.

This patch will also change some lines in rpm/genrpm.sh to archive the
source code using `git archive` because the old logic doesn't respect
`.gitignore`.
2017-08-22 08:53:56 +08:00
Roger Shimizu 9a2c74193f Update README and build_deb since libsodium 1.0.13 is backported
libsodium 1.0.13 is current in Debian apt repository of:
 - stretch-backports
 - jessie-backports-sloppy
2017-08-20 02:28:32 -07:00
Max Lv f8283fcc89 Fix #1626 2017-08-12 22:39:45 +08:00
Timothy Qiu 32466ed51b Discards long ACL lines 2017-08-09 15:53:58 -07:00
Roger Shimizu 3f81ab3169 Update README.md on install/build instructions for Debian 2017-08-08 16:09:14 -07:00
Analyser 2a0f28bcfa Add missed package ca-certificates, automake, libmbedtls-dev.
fix these errors:

- ca-certificates missed
  fatal: unable to access
'https://github.com/shadowsocks/shadowsocks-libev.git/': Problem with
the SSL CA cert (path? access rights?)

- automake missed
  Can't exec "aclocal": No such file or directory at
/usr/share/autoconf/Autom4te/FileUtils.pm line 326.
  autoreconf: failed to run aclocal: No such file or directory
  
- libmbedtls-dev
  checking for mbedtls_cipher_setup in -lmbedcrypto... no
  configure: error: mbed TLS libraries not found.
2017-08-07 16:48:59 -07:00
Zhuoyun Wei a46d2a1a83 ss-nat: Specify LAN interface with -I flag 2017-08-07 16:48:42 -07:00
Felix Yan 17f4acba38 Fix a typo in README 2017-08-07 16:48:25 -07:00
Daniel ac974ecf82 acl: remove unused 'n' var 2017-08-06 18:05:43 -07:00
Daniel 5ede10f694 plugin: remove unused 'new_path' var 2017-08-06 18:05:31 -07:00
Daniel 8e6ee153f0 Replace unchecked malloc with ss_malloc.
In a few places `malloc` was being used without checking the return for
a `NULL` pointer. There's already a wrapper (`ss_malloc`) in
`util.c` that performs this check and exits if it fails so this commit
replaces the unsafe `malloc`s with `ss_malloc`s.
2017-08-06 18:05:18 -07:00
DUPONCHEEL Sébastien 380fddbba9 redir: fix dscp to tos conversion 2017-08-06 06:58:31 -07:00
Daniel 6544ef9cf8 Replace udprealy function name typos with udprelay.
Two functions `construct_udprealy_header` and `parse_udprealy_header`
contained typos and should be `construct_udprelay_header` and
`parse_udprelay_header` respectively. This commit updates these function
names and the respective callers.
2017-08-06 06:58:16 -07:00
Max Lv 0ff1ec97be Enlarge the max_tries 2017-08-03 07:52:28 +08:00
Max Lv bf7fd7a860 Merge branch 'issue-1566'. #1566 2017-08-03 07:40:26 +08:00
Max Lv 8e41a43dc9 Remove reuse_port lock 2017-08-03 07:24:54 +08:00
Yousong Zhou 7c5416b441 syslog with daemon facility instead of kern (0) 2017-08-01 22:59:38 -07:00
Yousong Zhou db1728c76d decouple use_syslog from pid_flags
Sometimes we need processes to run in the foreground to be supervised
and at the same time use syslog facility instead of logging its stdout,
stderr output
2017-08-01 22:59:38 -07:00
Symeon Huang 28cf0ac1a5 Update README.md about Fedora/RHEL repo 2017-07-29 12:45:06 +01:00
Max Lv fbd34516f0 Update json.c and fix #1594 2017-07-28 22:55:23 +08:00
Max Lv a94bc33457 Merge pull request #1599 from rogers0/PR/build-fix
Minor fix for build_deb.sh script
2017-07-28 07:14:35 -07:00
netroby 4ab1440fd8 Add notes. fedora 26 has libsodium >= 1.0.12 2017-07-28 07:14:13 -07:00
Roger Shimizu 15a54beb8c Minor fix for build_deb.sh script
- Install libbloom-dev in backports repository.
- Clone libsodium git under "libsodium" directory.
- Change to a safer way to check debhelper version.
- Remove simple-obfs for jessie/stretch because it's just
  accepted to backports repository.
2017-07-28 20:58:44 +09:00
Max Lv 7912e9b385 Merge pull request #1595 from rogers0/PR/build-update-stretch
Update scripts/build_deb.sh after stretch release
2017-07-27 05:57:22 -07:00
Roger Shimizu cae2625513 Update scripts/build_deb.sh after stretch release
- Update build of libsodium to use debian's git repo
- Now libbloom is available in stretch-backports and
  jessie-backports-sloppy
2017-07-28 06:33:02 +09:00
Max Lv f1dd1354a9 Bump version v3.0.8 2017-07-27 11:22:27 +08:00
xqdoo00o 58fba54042 Update README.md
update Libsodium version
2017-07-25 23:36:24 -07:00
Max Lv bf8f8312b4 Refine the ppbloom filter 2017-07-21 19:54:00 +08:00
Yifu Yu 4ea517daf3 Fix: ss-local and ss-redir should also respect ipv6_first. 2017-07-14 01:51:35 -05:00
wangxufire 61e145140d trigger macOS build
trigger macOS build

trigger macOS build

trigger macOS build

trigger macOS build

trigger macOS build

trigger macOS build
2017-07-09 23:36:59 -05:00
Max Lv 0e74ea509c Refine the CLI help text. #1547 2017-07-06 17:17:17 +08:00
Vladimir Olteanu 556627399e parsing socks 5 request: more suggestive code 2017-07-04 23:57:21 -05:00
Vladimir Olteanu afb27ad054 count length bit when checking buffer size 2017-07-04 23:57:21 -05:00
xqdoo00o 3f0564f2ff Update README.md
update MbedTLS version
2017-07-03 01:32:57 -05:00
Secbone 4c88c72a66 delete duplicate code 2017-07-02 17:45:57 -05:00
Yuxiang Zhu c90cb5a0ae Fix #1533
This patch is going to replace the group name 'nogroup' with 'nobody' in
debian/shadowsocks-libev.service, and move file
'/etc/default/shadowsocks-libev' to '/etc/sysconfig/shadowsocks-libev'.

This is implemented by creating a text patch file. Not sure whether
there is a better approach.
2017-06-28 05:02:49 -05:00
Max Lv 5070256631 Clean up 2017-06-28 17:13:00 +08:00
Max Lv c11b2c08e4 Bump version v3.0.7 2017-06-27 14:17:53 +08:00
Jiewei Qian 42ce34518d Add ARGS env variable to alpine Dockerfile (#1537) 2017-06-21 00:57:02 -05:00
Max Lv babc9c4775 Fix #1531 2017-06-18 16:02:57 +08:00
Max Lv 95b4416e14 Clean up 2017-06-14 16:36:47 +08:00
Mass Carl 6b70ce59eb Add TW website "Bahamut" (#1527)
Since some part of this website "Bahamut" is blocked by China.And it benefits to many gamers and anime lovers.So I decide to list it into the GFW.
2017-06-12 02:25:47 -05:00