Commit Graph
91 Commits
Author SHA1 Message Date
Roger Shimizu a7d57ab9d5 Fix of PATH_MAX for GNU/Hurd
PATH_MAX is not defined on each platform, and should be avoided.

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
2019-12-04 01:20:53 +09:00
Max Lv 6d73201b9a Fix #2539 2019-11-10 19:58:21 +08:00
Max Lv 748e6f3824 Refine #2537 2019-11-09 07:25:39 +08:00
Max Lv ce71f49af8 Fix #2537 2019-11-09 07:17:06 +08:00
Max Lv e911625696 Revert "Add echo for stat API"
This reverts commit 94dc47da9d.

Fix #2477.
2019-09-25 22:36:47 +08:00
Max Lv 64b97cd9a3 Clean up 2019-07-17 09:16:06 +08:00
神楽坂ニャン 94dc47da9d Add echo for stat API 2019-06-10 12:40:02 +08:00
Max Lv 9c935f762e Fix #2366 2019-05-06 00:07:56 -04:00
Chinsyo 7bd382042b bump copyright year 2019-03-21 12:39:29 +08:00
Max Lv 144138788b Refine ipv6 only handling. #2300 2019-03-01 07:32:25 +08:00
Max Lv c33cf3efc0 Fix #2267 2019-01-21 12:12:42 +08:00
Simon Shi 0c2bda940c Rename variable 2019-01-05 09:34:52 +08:00
Simon Shi e5d8476afe Update docs 2019-01-04 23:28:52 +08:00
Simon Shi f268b278c0 Test homedir for ss-manager
Fix for user args
2019-01-04 23:11:25 +08:00
Max Lv 1acdb1997d Fix #2194 2018-10-15 12:58:40 +08:00
hwchan 00354513e6 Multipe nameservers support 2018-07-07 17:05:34 +08:00
FlyingheartCN 662b6db3f3 Fix Build Fail with GCC8 2018-05-04 01:41:36 +08:00
Terry Chan b6faadf857 Support TCP_NODELAY in manager mode 2018-01-20 15:44:17 +08:00
Terry Chan ed508ac142 Fix no parse --fast-open in manager mode 2018-01-20 15:34:40 +08:00
Max Lv 85a64ae836 Bump version 2018-01-15 17:25:03 -08:00
Max Lv 83e637cc57 Disable port reusing in manager mode 2017-12-18 21:42:21 +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 c67d275803 Fix #1734 2017-10-14 07:21:08 +08:00
Max Lv bf7fd7a860 Merge branch 'issue-1566'. #1566 2017-08-03 07:40:26 +08:00
Max Lv 8e41a43dc9 Remove reuse_port lock 2017-08-03 07:24:54 +08:00
Yousong Zhou db1728c76d decouple use_syslog from pid_flags
Sometimes we need processes to run in the foreground to be supervised
and at the same time use syslog facility instead of logging its stdout,
stderr output
2017-08-01 22:59:38 -07:00
Max Lv babc9c4775 Fix #1531 2017-06-18 16:02:57 +08:00
Xiandong eba486cb02 Output service method in list API (#1523)
* Fix #1518 config file with wrong json format

Removing trailing "," to make the configuration file compliant with JSON specification

* Remove extra "," in json file

* server_port should be integer instead of string 

server_port in generated json configuration file should be integer instead of string

* Add list active service ports feature

A new management API has been added to list all active service ports.

* Make list API output JSON compliant 

In the following format:
[
{ "server_port":"8388","password":"password"},
...
]
Note that server_port value is string instead of integer for easy display on the console.

* Make safe room for the new list entry

"\n\t{\"server_port\":\"%s\",\"password\":\"%s\"}," 
Reserve 50 char spaces for the extra characters in the above.

* Output method for each service port in list API
2017-06-08 21:56:35 -05:00
Xiandong e2f717e9fb Add list API to list service ports (#1521)
* Fix #1518 config file with wrong json format

Removing trailing "," to make the configuration file compliant with JSON specification

* Remove extra "," in json file

* server_port should be integer instead of string 

server_port in generated json configuration file should be integer instead of string

* Add list active service ports feature

A new management API has been added to list all active service ports.

* Make list API output JSON compliant 

In the following format:
[
{ "server_port":"8388","password":"password"},
...
]
Note that server_port value is string instead of integer for easy display on the console.

* Make safe room for the new list entry

"\n\t{\"server_port\":\"%s\",\"password\":\"%s\"}," 
Reserve 50 char spaces for the extra characters in the above.
2017-06-07 22:10:52 -05:00
Xiandong 195a961e97 server_port in json file should be integer (#1520)
* Fix #1518 config file with wrong json format

Removing trailing "," to make the configuration file compliant with JSON specification

* Remove extra "," in json file

* server_port should be integer instead of string 

server_port in generated json configuration file should be integer instead of string
2017-06-06 04:27:22 -05:00
Xiandong b9085c2e32 Remove extra "," in json file 2017-06-06 02:55:50 -05:00
Xiandong ae156c6aeb Fix #1518 config file with wrong json format
Removing trailing "," to make the configuration file compliant with JSON specification
2017-06-06 02:55:50 -05:00
Paizhuo.Chen 7ffaa9f33e fix shadowsocks/shadowsocks-libev#1408 2017-03-26 22:12:23 +08:00
Paizhuo.Chen 233cf15834 Add method, fast_open, mode, plugin options to ss-manager 2017-03-25 21:39:25 +08:00
Max Lv b655fb2b8f Replace nonce cache with a ping-pong bloom filter (#1282)
* Add Ping-Pong bloom filter

* Refine bloom filter insertion

* Reduce the error rate to 0.00001

* Avoid alignment issue in murmurhash2

* Fix a memory leak

* Fix build on non-GPU targets

* Detect get_current_dir_name in configure

* Update README.md

* Remove redudant bfree()

* Reduce the memory usage for local client

* Fix #1275

* Refine #1275

* Use IP when bypassing SNI domains

* Also apply replay detector on UDP traffic

* Update deb build script

Now build script is able to auto detect system and choose libraries
necessary to build.

Also update the README accordingly.

* Update build script to enable jessie/stretch etc

Also include a few cleanup that simplified pkg installation from
backports repository.
2017-02-20 10:29:32 +08:00
Max Lv 0cff5503f6 Add default manager-address 2017-02-10 15:38:38 +08:00
Max Lv f4b1641636 Fix #1217 2017-02-08 09:58:04 +08:00
Max Lv ef0402eb10 Add --key option to set key directly (#1207) 2017-02-06 17:02:04 +08:00
Max Lv 7b290f30d6 Make SO_REUSEPORT disabled by default 2017-02-02 21:05:57 +08:00
anonymous-contributor a3d0f02c3e Use enum number for val of long options (#1155) 2017-02-01 12:53:20 +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 cb60579c74 Refine buffer handling in ss-manager 2017-01-23 12:27:45 +08:00
Max Lv 2d3a1b2a3e Fix #1123 2017-01-23 08:44:36 +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 ecf1fcc845 Fix #1059 2017-01-10 21:57:38 +08:00
Roger Shimizu f59cd07992 fix typo in src/manager.c 2017-01-09 22:45:50 +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
GhostFlying c807d2d6c4 fix bug when port reuse fail (#1037) 2017-01-05 23:26:47 -06:00