Commit Graph
2513 Commits
Author SHA1 Message Date
Max Lv 1f98ca1e1b Merge pull request #1783 from wongsyrone/info
update entropy info based on libsodium documentation
2017-11-13 09:13:21 +08:00
Syrone Wong 7df4178db8 update entropy info based on libsodium documentation 2017-11-13 08:21:51 +08:00
Max Lv 87e4119c96 Merge pull request #1772 from rogers0/PR/artful
scripts/build_deb.sh: Support ubuntu artful and bionic
2017-11-04 12:12:38 +08:00
Roger Shimizu f35e24f6d6 scripts/build_deb.sh: Support ubuntu artful and bionic 2017-11-01 23:03:29 +09:00
星野ハジメ cc1bb4cf62 format with .uncrustify.cfg (#1759)
* format with .uncrustify.cfg

format with .uncrustify.cfg

* format with .uncrustify.cfg

* format with .uncrustify.cfg exclude json.* base64.* uthash.h

* format with .uncrustify.cfg exclude json.* base64.* uthash.h
2017-10-30 21:28:53 +08:00
Max Lv 26ae365f7b Refine #1756 2017-10-30 18:02:59 +08:00
星野ハジメ 44027da326 enable TCP_NODELAY from config file (#1757)
* Fix #1739

Refine #1739

* enable TCP_NODELAY from config file
2017-10-30 10:35:14 +08:00
Sion Kazama 54c71903d9 A minor change to let it getting on automatically
The command will be terminated if the parameter `-y` isn't following in ubuntu 16.04 TLS. (The command following will not executed)
2017-10-18 16:10:27 +08:00
Max Lv f19a96e1fa Refine #1739 2017-10-18 09:29:32 +08:00
Max Lv b3f3b58a1d Fix #1739 2017-10-16 15:51:05 +08:00
Max Lv c67d275803 Fix #1734 2017-10-14 07:21:08 +08:00
Max Lv 10a2d3e3cd Fix #1693 2017-09-19 09:09:58 +08:00
Roger Shimizu da85fa17d4 Fix scripts/build_deb.sh for debian jessie
Thanks to Tom <hexuxin@foxmail.com> for the bug report.
2017-09-19 08:46:45 +08:00
Vladimir Olteanu 82694c8f19 properly set recv_ctx->connected 2017-09-16 14:19:43 +08:00
Max Witten b721c0fa6d Update docs for TCP_NODELAY 2017-09-15 10:55:15 +08:00
Max Lv 69c41d9752 Bump version v3.1.0 2017-09-14 19:31:13 -07:00
Max Lv 666801ddfc Disable addr reconstruction on Android 2017-09-15 10:19:03 +08:00
Vladimir Olteanu 1c64829dfa Add command-line argument for keeping TCP_NODELAY (#1685) 2017-09-15 09:17:00 +08:00
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