Commit Graph
335 Commits
Author SHA1 Message Date
Mygod 307088ed4a Support hostname resolving in VPN mode 2018-08-24 14:00:13 +08:00
sxyoxygen 059780ff9b Update local.c 2018-08-08 01:56:37 +08:00
Mygod d107f9ecdb More bugfix 2018-07-30 23:50:35 +08:00
Max Lv 9387267267 Merge pull request #2132 from Mygod/master
Refine local server_handshake
2018-07-30 23:15:54 +08:00
Max Lv fad3ca59e7 Revert "Refine ip initialization"
This reverts commit 9a56155513.
2018-07-30 23:15:28 +08:00
Max Lv 9a56155513 Refine ip initialization 2018-07-30 23:06:22 +08:00
Mygod 4a97acd44e Refine local server_handshake
* Removed STAGE_PARSE and the 5-year-old hacky "fake" reply;
* SOCKS5 server returns more error code than 0x07;
* Ensure `ip` is initialized in all cases; (I guess security guys don't want to audit the local part)
* Code more readable magically.
2018-07-30 22:52:40 +08:00
Max Lv 11a0d8db60 Reset timer in server_stream as well 2018-07-02 12:51:20 +08: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
Max Lv dada99c5b6 Fix the SNI issue 2018-04-08 22:32:21 -07:00
Max Lv c377dcac97 Merge pull request #2017 from rallet/master
Ignore SIGCHLD for library usage
2018-04-09 09:47:32 +08:00
Max Lv 2c2063a792 Fix a warning on Android 2018-04-08 18:36:38 -07:00
Max Lv d4298f71f0 Refine the code structure 2018-04-08 18:32:32 -07:00
Rallets 5d17c0431f Ignore SIGCHLD for library usage 2018-04-08 12:51:45 +08:00
Mygod a4c9059ffe Fix all routing not working in Android
This reverts commit 66ed595c52.
2018-04-04 19:02:26 -07:00
Max Lv 3e7c852970 Fix a crash 2018-04-01 21:27:16 -07:00
Max Lv cd72e28bcb Add missing option 2018-04-01 20:01:16 -07:00
Max Lv 7e414bb993 Disable SNI when DNS forwarding enabled 2018-04-01 10:15:06 +08:00
Max Lv 66ed595c52 Add back the SNI addr reconstructor 2018-03-30 01:14:44 -07:00
Linus Yang 1f9dd2fbf4 MinGW: fix socket closing in wrong place 2018-03-22 19:31:01 +08:00
Linus Yang 14fb82b966 Enable plugins on MinGW 2018-03-14 09:58:25 +08:00
Max Lv a377c5114a Fix #1974 2018-03-13 02:58:48 -07:00
Linus Yang 3f00e533bf Minor format fix 2018-03-12 13:16:37 +08:00
Linus Yang 0a11c87aa5 Do not override error code of setsockopt 2018-03-12 12:41:51 +08:00
Linus Yang f4c612f832 Support TCP fast open on Windows 2018-03-09 17:46:38 +08:00
Linus Yang 2ed8791dab Re-add support for MinGW 2018-03-08 17:26:11 +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
Max Lv 512891c66f Refine SNI parser in ss-local 2018-01-07 20:20:15 -08:00
Max Lv 539bf6e66d Avoid reconstructing requests with SNI/HTTP parser 2018-01-07 18:17:21 -08:00
Max Lv afce1b3f42 Refine #1872 2018-01-05 01:09:41 -08:00
Max Lv 5072be7a02 Disable SNI on Android 2017-12-27 09:58:50 +08:00
Max Lv 65e9d2355d Avoid reconstructing all the connections 2017-12-26 17:43:48 -08:00
Max Lv 3ed6019e1f Fix #1843 2017-12-20 09:20:01 +08:00
alberto lalama 70ea7c2e27 Library interface to start ss local with a callback 2017-12-13 12:02:57 -05:00
Max Lv 0c3cf8beb3 Handle runtime fast open check correctly 2017-12-01 09:49:15 +08:00
Max Lv 79f0e3c68d Fix uninitialized variables 2017-11-28 10:33:26 +08:00
Max Lv aebb79c222 Refine build on platform without TCP_FASTOPEN 2017-11-27 14:02:11 +08:00
Max Lv 42b29fbb63 Fix cmake builds 2017-11-27 12:13:04 +08:00
Max Lv 6eb93c4c4e Fix conditional build for new TFO API 2017-11-26 23:31:19 +08:00
Max Lv 9ac81759df Refine TFO on Darwin 2017-11-26 14:43:50 +08:00
Max Lv d445ea938b Refine TFO interface. #1800 2017-11-26 13:12:00 +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 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
Vladimir Olteanu 82694c8f19 properly set recv_ctx->connected 2017-09-16 14:19:43 +08: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
linxiaocong da4bbe74fb fix segment fault when plugin and multi remote servers enabled 2017-09-10 14:56:25 +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