Max Lv
bf210be2b7
Refine #690
2016-06-28 15:35:16 +08:00
Max Lv
55dea8b973
Fix #690
2016-06-28 15:33:55 +08:00
cs17899219
d33b865ec7
Add a signal SIGUSR1 for safely stop the server ( #677 )
2016-06-14 21:29:06 -05:00
Max Lv
00209ab2ea
Revert "Add APIs for non thread safe usage of shadowsocks-libev library"
...
This reverts commit 3e4c922363 .
2016-06-14 09:15:58 +08:00
Max Lv
3e4c922363
Add APIs for non thread safe usage of shadowsocks-libev library
2016-06-13 17:47:11 +08:00
Max Lv
658703a1bd
Fix #673
2016-06-12 09:09:03 +08:00
Max Lv
0cfae045e8
Fix #648
2016-05-26 14:35:02 +08:00
Max Lv
fe22a6c90b
Refine error handling of connect()
2016-05-23 12:07:36 +08:00
Kim
342bd3f776
Fix ipv6 address format in log message
2016-05-08 17:34:54 +08:00
Max Lv
bb50fc22ca
Add option for binding to address #626
2016-05-06 14:52:33 +08:00
Max Lv
41d93b126a
Fix #626
2016-05-06 13:23:18 +08:00
Max Lv
72ee77ea35
Fix #615
2016-04-28 10:34:26 +08:00
Kim
08f873adc7
Roll up year to 2016
2016-04-22 22:50:26 +08:00
Kim
dfa9e17c1b
Add help option
...
* updated cli option 'help'
- all 5 apps supports cli option '-h' without error exit code
- supports long option '--help'
* fixed bad line brake
2016-04-21 06:22:58 +08:00
Max Lv
ac5f26c6fa
Fix #585
2016-04-17 19:38:10 +08:00
Max Lv
114128668c
Refine helper functions
2016-04-16 00:43:27 +08:00
Syrone Wong
ebe79bbbd8
Refine memory management ( #579 )
...
- Added one macro to avoid dangling pointers
- Added two functions to perform NULL pointer check
since the allocation is not guaranteed by C library, although it
is a rare case, just for sanity
- Add NULL pointer check to brealloc() and bfree() and for sanity as well
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-04-15 09:16:38 -07:00
Syrone Wong
53c6a09b93
Reset errno to 0 before checking it
...
errno is never set to zero by any system call or library function,
and it's programmer's resposibility to reset it before doing checks.
Otherwise the error might be misleading.
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-04-15 08:35:16 -07:00
Syrone Wong
58264c77fc
Polish code
...
code issues found by Clang with
CFLAGS="-Os -Wall -Wextra -Werror=unused-const-variable -Wno-error=unused-parameter"
enabled
The details as follows:
- variable initialization issue, modified them as Clang suggested
- data type mismatch when comparing, fix them either by casting or changing
the data type of index of iterator
- get_sockaddr() in netutils may return -1 thus changed returning type from
size_t to ssize_t, which makes Clang happier
- recvfrom() in udprelay is identical, fix this by creating local variable
for comparison and assign back to buf->len when returning value is acceptable
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-04-07 21:28:23 -07:00
Max Lv
da06378915
Clean up
2016-01-31 17:21:44 +08:00
Max Lv
0d64f11f47
Fix typo
2016-01-24 17:18:09 +08:00
Max Lv
dbe1e01074
Add prefix option for Android
2016-01-24 16:32:37 +08:00
Kery Wu
a0098cfdb9
Fix the crash issue in free_connections
2016-01-01 10:32:57 +08:00
Symeon Huang
05a15aa187
Support OTA in library interface
2015-12-25 14:46:33 +00:00
Max Lv
e921f40aa8
Fix #493
2015-12-25 09:18:53 +08:00
Max Lv
52ff163cd6
Fix a build error
2015-12-15 09:17:44 +08:00
Max Lv
47f984e61c
Refine nofile option
2015-12-14 19:31:12 +08:00
Max Lv
d2ef245a05
Refine buffer allocation (2)
2015-12-13 10:57:55 +08:00
crvv
d0cd1b427b
Also refine TCP fastopen
2015-12-07 18:26:20 +08:00
Max Lv
e7a1d1e333
Refine TCP fastopen
2015-12-07 12:47:28 +08:00
crvv
002e3e5394
client side TCP fast open support on Darwin
2015-12-07 00:46:04 +08:00
Max Lv
eccc91d711
Refine ACL support
2015-12-03 14:18:29 +08:00
Max Lv
c5155e4a59
fix typo
2015-12-03 10:01:48 +08:00
Max Lv
b0600a8784
Refine buffer handling
2015-11-30 15:03:04 +08:00
Max Lv
f4fa30da5c
Refine buffer handling
2015-11-29 20:01:50 +08:00
Max Lv
d462e4cd8d
Fix the traffic update timer
2015-11-21 17:01:14 +08:00
Max Lv
778ccb2787
Revert "Triger timer only if there are packets received"
...
This reverts commit 4bdfc9f3b1 .
2015-11-21 16:58:28 +08:00
Max Lv
4bdfc9f3b1
Triger timer only if there are packets received
2015-11-21 16:47:22 +08:00
Max Lv
f226d47ea4
fix build error
2015-11-19 09:55:37 +08:00
Max Lv
c9e0cb6698
add traffic stat IPC calls
2015-11-19 09:49:33 +08:00
pagxir
7331accab3
try to recover socks5 connection on buggy proxy client
2015-10-31 22:16:02 +08:00
Max Lv
25c575cb78
clean up
2015-10-29 15:41:36 +08:00
Max Lv
901457859c
add auth to config
2015-09-27 16:04:05 +08:00
Max Lv
8d46ced3c9
fix auth in udprelay
2015-09-24 11:00:13 +08:00
Max Lv
0e79c93ad1
add auth to udprelay
2015-09-23 22:15:59 +08:00
Max Lv
9f553536cb
Use IV + Chunk id as key of BLAKE2b
2015-09-22 18:23:23 +08:00
Max Lv
552fca1bff
Use one time key for BLAKE2b
2015-09-22 17:57:44 +08:00
Max Lv
d3e43e09a2
Refine the authentication for true CCA
2015-09-22 17:57:44 +08:00
Max Lv
3042dd6a06
fix an issue of ACL
2015-09-21 19:01:21 +08:00
Max Lv
5ae4df94e4
Update the hash function
2015-09-21 09:06:48 +08:00