Commit Graph
2495 Commits
Author SHA1 Message Date
Max Lv 38d6cf2940 Fix #1680 2017-09-14 12:56:07 +08:00
Max Lv c213ef1963 Add ARES_VERSION_MAJOR 2017-09-13 10:12:00 +08:00
不可描述先生 b8705cc3b2 refine doc/ss-redir.asciidoc (#1683) 2017-09-12 17:20:28 +08:00
Max Lv 0cb9cbe50d Fix #1682 2017-09-12 12:57:58 +08:00
Max Lv 277d6d0b5b Disable DNS rotate 2017-09-12 09:01:12 +08:00
Max Lv 012c6e7278 Merge pull request #1678 from linxiaocong/master
fix segment fault when plugin enabled and multi remote servers configured
2017-09-11 14:38:27 +08:00
Max Lv 01df436bb1 Refine #1677 2017-09-11 09:42:48 +08:00
linxiaocong da4bbe74fb fix segment fault when plugin and multi remote servers enabled 2017-09-10 14:56:25 +08:00
Max Lv 04f419470a Fix #1659 2017-09-07 15:25:43 +08:00
Max Lv a09629dc73 Refine TPROXY usage examples 2017-09-06 10:20:22 +08:00
Max Lv 7abac61466 Fix #1663 2017-09-05 11:59:18 +08:00
xqdoo00o 31bb108b8f Update README.md
Update mbedtls library version
2017-09-04 15:28:27 +08:00
Vladimir Olteanu 9201619090 ss-local: properly handle SOCKS5
* close the connection if the client doesn't speak SOCKS5
 * check if client supports "no auth. required"
2017-09-04 15:28:07 +08:00
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