Commit Graph
122 Commits
Author SHA1 Message Date
Max Lv dd5e954ab4 Clean up 2018-09-02 17:21:23 -07:00
sxyoxygen 95c1dba176 Update utils.c 2018-08-08 01:47:19 +08:00
Roger Shimizu d88345fa46 Fix of PATH_MAX for GNU/Hurd
Memory of userconf in src/utils.c:get_default_conf() only gets allocated
once, and will not be freed. It's used as static buffer.

This can avoid using PATH_MAX, which actually doesn't exist on certain
platforms.

Info:
- https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
- https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL
2018-06-16 19:47:39 +09:00
Yegor Ievlev 8fd83e2686 Use chacha20-ietf as a default cipher instead of rc4-md5 (#2080)
* Use chacha20-ietf as a default cipher instead of rc4-md5

* Update tunnel.c

* Update utils.c

* Update ss-local.asciidoc

* Update ss-local.asciidoc

* Update tunnel.c

* Update ss-tunnel.asciidoc

* Update ss-manager.asciidoc

* Update ss-redir.asciidoc

* Update shadowsocks-libev.asciidoc

* Update aead.c

* Update local.c

* Update server.c

* Update utils.c
2018-06-07 08:58:10 +08:00
Linus Yang 2ed8791dab Re-add support for MinGW 2018-03-08 17:26:11 +08:00
ksqsf eb501b70c7 Oops.. Remove useless code. 2018-02-11 00:53:33 +08:00
ksqsf 2a3d3bc13c Remove pointless optimization in get_default_conf() 2018-02-11 00:35:59 +08:00
ksqsf 3c3c50b4f8 Search XDG_CONFIG_HOME for user-specific config 2018-02-11 00:30:09 +08:00
Max Lv 85a64ae836 Bump version 2018-01-15 17:25:03 -08: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 Witten b721c0fa6d Update docs for TCP_NODELAY 2017-09-15 10:55:15 +08:00
Max Lv 0e74ea509c Refine the CLI help text. #1547 2017-07-06 17:17:17 +08:00
Max Lv 490b9cbcdc Fix #1430 2017-04-05 15:12:37 +08:00
Max Lv de0cebb62e Fix a building issue 2017-03-05 16:07:10 +08:00
Max Lv 5b122d4f8c Fix #1306 2017-02-27 13:37:07 +08:00
lqs 8a40e538f8 Add tcp-fast-open support for ss-redir 2017-02-26 22:45:31 +08:00
Max Lv d434cd20ec Fix a memory leak 2017-02-17 12:31:22 +08:00
Max Lv ef0402eb10 Add --key option to set key directly (#1207) 2017-02-06 17:02:04 +08:00
Max Lv 894eae567c Refine ciphers 2017-02-04 20:04:48 +08:00
Max Lv 6e0c257bce Fix help message 2017-02-03 07:24:18 +08:00
Max Lv 7b290f30d6 Make SO_REUSEPORT disabled by default 2017-02-02 21:05:57 +08:00
Max Lv 78cf5348f0 Update documents 2017-02-01 18:51:48 +08:00
Max Lv 4ebe5aeb12 Add SIP004 (AEAD) support 2017-01-29 10:10:44 +08:00
Roger Shimizu d714d1f182 Refine #1133 second time (#1136) 2017-01-25 18:20:21 +08:00
Max Lv 3f8cd982e5 Drop MinGW32 support 2017-01-24 20:10:31 +08:00
Max Lv 0acc79b430 Fix UDP relay when plugin enabled 2017-01-14 12:34:05 +08:00
Max Lv 92f0baa789 Update SIP003 interfaces 2017-01-14 10:40:14 +08:00
Max Lv 3fde843ec8 Fix #1061 2017-01-12 10:24:27 +08:00
Max Lv 61b82c45c5 Add SIP003 plugin support (#1044)
https://github.com/shadowsocks/shadowsocks-org/issues/28
2017-01-08 01:10:00 -06:00
Max Lv 2f3eb4c11e Fix building warnings on Cygwin 2016-12-30 19:50:22 +08:00
Max Lv 8cb4f81eba Add HTTP/TLS obfuscating. [SIP001] (#1009)
Add experimental HTTP/TLS obfuscating as an **optional extension** of shadowsocks protocol.

More discussions can be found here: https://github.com/shadowsocks/shadowsocks-org/issues/26

As this feature is still a SIP (Shadowsocks Improvement Proposal), it's very unstable and experimental. So, 

1. Don't enable it unless you know what it is.
2. Be very careful when using it in production environment.
2016-12-27 02:53:25 -06:00
Syrone Wong 9db8c3abe8 zeroize some structs before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-12-08 04:11:43 -06:00
Max Lv 24b407c37d Fix #981 2016-12-04 11:53:42 +08:00
Rayson Zhu 135ceedb14 revert pwd->name to user when error occurs (#979) 2016-11-28 22:02:45 -06:00
Rayson Zhu 4034190b15 Change supplementary groups after setgid. (#977) 2016-11-28 16:42:35 -06:00
Rayson zhu a6ef853e2b will not print user name 2016-11-20 01:31:58 +08:00
Max Lv 52e391962f Add option for firewall rules 2016-11-17 15:18:46 +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
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
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 bac7ba79dd Drop FIN packets to misbehaving clients (#925)
* Drop FIN if detecting bad clients

* Fix the command line

* Refine iptables rules

* Refine euid
2016-11-07 02:26:57 -06:00
Max Lv 83c244bc9a Update the document to use rc4-md5 as default cipher 2016-10-26 09:15:12 +08:00
Max Lv efafb59647 Fix #863 2016-10-02 13:37:45 +08:00
rampageX 6e60e17224 Show encryption library used in the help message (#851) 2016-09-27 21:57:43 -05:00
Syrone Wong b5c64b925f Add AES-CTR ciphers info (#820)
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-09-10 14:03:16 +08:00
Max Lv b28638ab80 Clean up 2016-09-09 13:17:58 +08:00
Max Lv 42d9b68dcc Remove white list option in CLI 2016-09-08 13:06:13 +08:00