This patch is going to replace the group name 'nogroup' with 'nobody' in
debian/shadowsocks-libev.service, and move file
'/etc/default/shadowsocks-libev' to '/etc/sysconfig/shadowsocks-libev'.
This is implemented by creating a text patch file. Not sure whether
there is a better approach.
* 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
* 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.
* 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
The ``<sys/socket.h>`` header should be included in ``src/netutils.h``
before the usage of ``struct sockaddr_storage``, otherwise build failed
with errors such as:
```
In file included from udprelay.c:53:0:
netutils.h:68:22: error: 'struct sockaddr_storage' declared inside parameter list [-Werror]
int ipv6first);
^
netutils.h:68:22: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
```
Tested on DragonFly BSD 4.9-development and Debian Linux testing.
If nonce received in more than one packet under some network condition, the salsa20 cipher decryption will lose cipher->nonce_len - left_len bytes of data.