fix these errors:
- ca-certificates missed
fatal: unable to access
'https://github.com/shadowsocks/shadowsocks-libev.git/': Problem with
the SSL CA cert (path? access rights?)
- automake missed
Can't exec "aclocal": No such file or directory at
/usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
- libmbedtls-dev
checking for mbedtls_cipher_setup in -lmbedcrypto... no
configure: error: mbed TLS libraries not found.
In a few places `malloc` was being used without checking the return for
a `NULL` pointer. There's already a wrapper (`ss_malloc`) in
`util.c` that performs this check and exits if it fails so this commit
replaces the unsafe `malloc`s with `ss_malloc`s.
Two functions `construct_udprealy_header` and `parse_udprealy_header`
contained typos and should be `construct_udprelay_header` and
`parse_udprelay_header` respectively. This commit updates these function
names and the respective callers.
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
- Install libbloom-dev in backports repository.
- Clone libsodium git under "libsodium" directory.
- Change to a safer way to check debhelper version.
- Remove simple-obfs for jessie/stretch because it's just
accepted to backports repository.
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.