Commit Graph
273 Commits
Author SHA1 Message Date
anonymous-contributor a3d0f02c3e Use enum number for val of long options (#1155) 2017-02-01 12:53:20 +08:00
Max Lv c0030f0d7d Improve logging 2017-01-31 20:01:44 +08:00
Max Lv 790520c478 No need to report addr in non-stream mode 2017-01-31 19:42:01 +08:00
Max Lv 05d5121707 Fix typos for endian 2017-01-31 18:51:52 +08:00
Max Lv 4ebe5aeb12 Add SIP004 (AEAD) support 2017-01-29 10:10:44 +08:00
Max Lv 3f8cd982e5 Drop MinGW32 support 2017-01-24 20:10:31 +08:00
Max Lv 8fce46ed62 Fix #1078 2017-01-16 13:23:07 +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 c6355f5060 Fix #1057 2017-01-10 12:57:06 +08:00
Max Lv 355c264a20 Fix #1055 2017-01-10 11:00:40 +08:00
Max Lv dc96bced39 Fix #1051 2017-01-10 09:55:16 +08:00
Max Lv 94a341fe2c Refine SIGCHLD handling 2017-01-09 17:56:56 +08:00
Max Lv f67518a9d4 Fix #1050 2017-01-09 17:15:40 +08:00
Max Lv 97c58ad44d Refine signal handling 2017-01-08 16:22:49 +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 47b3406739 Disable fast_open when setsockopt failed 2016-12-29 11:40:07 +08:00
Max Lv 3383501e7b Disable fast_open when it's not supported 2016-12-29 11:26:32 +08:00
Max Lv 80565eece1 Refine the log of obfuscating 2016-12-28 15:01:17 +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
Max Lv 32f52dabf9 Fix #1008 2016-12-27 15:02:13 +08:00
Max Lv 8e52029d31 Fix #1006 2016-12-23 18:17:25 +08:00
Syrone Wong e6c0780435 memset zero before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-12-10 21:37:56 -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 25cc062e5d Use cork_container_of instead 2016-12-08 15:06:42 +08:00
Max Lv a63a33861f Add container_of 2016-12-08 14:48:40 +08:00
Syrone Wong baff29e970 Fix issues found by cppcheck
- GNU treats void* as char* when doing pointer arithmetic, so let's make it clear
- Fix memory leak, save copy from malloc() and pass the original pointer to free()
- minor type mismatches

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-12-07 22:30:47 -06:00
Max Lv fd388e0502 Fix #972 2016-11-26 13:34:41 +08: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
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 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 12612c6395 Refine key string 2016-11-16 11:08:02 +08: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 d1765df9f9 support ipv6_first option in config file (#946) 2016-11-13 23:32:43 -06:00
Max Lv 5cd294879b Add -6 option for #942 2016-11-12 11:01:05 +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 87b01a14d5 Fix #939 2016-11-10 17:22:03 +08:00
Max Lv 60c25dbace Reduce the side effects 2016-11-07 17:39:55 +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 869f3b7bc8 Refine error handling of ATYP 2016-10-31 16:05:03 +08:00
Max Lv e2f8b9a34a Refine error levels 2016-10-31 15:22:44 +08:00
Max Lv aac4240e9f Fix #909 2016-10-29 13:40:40 +08:00