Commit Graph
348 Commits
Author SHA1 Message Date
Mygod ebdf27975c Allow long idle connections in server 2019-07-04 10:22:34 +08:00
Max Lv 6c28add775 Enable -Wcas-align for #2412 2019-06-30 21:34:35 +08:00
Max Lv a99c39c7dd Simplify the server auto blocking mechanism 2019-06-01 15:20:45 +08:00
Max Lv 4a42da641b Allow bind to local IPv4/v6 addresses. Fix #2372 2019-05-09 10:59:16 +08:00
Max Lv a7291ea725 Enlarge the socket buffer size to 16KB.
After five years, memory footprint is not a problem for most of
low-end boxes and high-end routers now.

It should also improve the speed on loopback and high-speed LAN
networks.
2019-04-30 09:22:54 +08:00
Max Lv f35c162357 Reduce size of UDP remote context 2019-03-24 22:15:25 -04:00
Chinsyo 7bd382042b bump copyright year 2019-03-21 12:39:29 +08:00
Max Lv 3fa9e57248 Refine ipv6only handling 2019-03-10 07:40:07 +08:00
Max Lv 14dd82045e Refine json config handling. #2308 2019-03-05 09:52:44 +08:00
Max Lv 144138788b Refine ipv6 only handling. #2300 2019-03-01 07:32:25 +08:00
Max Lv 404ec62b79 Fix #2285 2019-02-18 09:59:40 +08:00
Max Lv d217209271 Revert "Switch user before starting plugin server" (#2275) 2019-02-04 08:27:02 +08:00
poplite afeceeaf4d Switch user before starting plugin server 2019-02-03 23:32:52 +08:00
Max Lv 782311ad2b Refine ss_align interfaces 2019-01-22 12:59:29 +08:00
Max Lv d6b21daa9c Refine ACL log 2019-01-21 12:26:27 +08:00
Max Lv c33cf3efc0 Fix #2267 2019-01-21 12:12:42 +08:00
Mygod 641e4ed9c8 Refine passing plugin args
Refine 68f885c271. Somehow I postponed this change for 8 months. Good job me!
2019-01-17 00:48:29 +08:00
Gyt 84b157e866 add server port in log file 2018-11-26 21:16:25 +08:00
Max Lv 46ff0a8045 Refine #2162 2018-09-02 17:27:59 -07:00
Max Lv dd5e954ab4 Clean up 2018-09-02 17:21:23 -07:00
Max Lv 1dcfe68c8c Fix #2162 2018-09-02 12:43:37 +08:00
sxyoxygen 8356d8ae74 Update server.c 2018-08-08 01:56:12 +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 a0ef456977 Fix #2051 2018-05-24 16:54:57 +08:00
FlyingheartCN 662b6db3f3 Fix Build Fail with GCC8 2018-05-04 01:41:36 +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 b4c5021c65 Missing macro for MinGW 2018-03-10 23:44:27 +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
Max Lv 8acbe68e66 Fix #1915 2018-02-11 08:42:07 +08:00
ksqsf 3c3c50b4f8 Search XDG_CONFIG_HOME for user-specific config 2018-02-11 00:30:09 +08:00
Max Lv 5fa98a6693 Fix #1911 2018-02-06 10:18:03 +08:00
Max Lv 85a64ae836 Bump version 2018-01-15 17:25:03 -08:00
Max Lv be795e1985 Refine query interface 2017-12-27 22:18:55 -08:00
Max Lv 10ce3ed5d3 Refine query handling 2017-12-27 21:52:17 -08:00
Max Lv 57ab828ba1 Fix a potential null pointer acceess issue. #1854
It's possible that c-ares calls the callback function immediately in ares_gethostbyname, which may free the server
structure in that callback function.
2017-12-27 21:47:28 -08:00
Max Lv 3ed6019e1f Fix #1843 2017-12-20 09:20:01 +08: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 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 2cad381036 Refine TFO in redir and server mode 2017-11-26 14:32:26 +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
星野ハジメ 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
Vladimir Olteanu 1c64829dfa Add command-line argument for keeping TCP_NODELAY (#1685) 2017-09-15 09:17:00 +08:00