Max Lv
efafb59647
Fix #863
2016-10-02 13:37:45 +08:00
Kim
7455eb387d
fixed: remove color log ( #839 )
2016-09-22 16:48:23 +08:00
Max Lv
5ee00d2647
Clean up
2016-09-11 08:31:47 +08:00
Max Lv
b28638ab80
Clean up
2016-09-09 13:17:58 +08:00
Max Lv
64870a276b
Add HTTP/SNI parser ( #809 )
...
* WiP: add HTTP/SNI parser
* WiP: replace hostname with HTTP/SNI header
* WiP: add ACL
* Fix white list
* Replace free() with ss_free()
* Refine sockaddr handling
* Add HTTP/SNI support to redir
2016-09-08 10:10:23 +08:00
Max Lv
9a43cc6e6b
Fix #781
2016-08-27 06:58:55 +08:00
Max Lv
5812840b24
Fix typo
2016-08-26 09:19:38 +08:00
Max Lv
46afbdcfd6
Refine incomplete header handling
2016-08-22 21:04:32 +08:00
Max Lv
722d8d0c62
Fix build on Linux
2016-08-11 15:17:21 +08:00
Max Lv
1df8d06e3e
Refine QoS flag for UDP forwarding
2016-08-08 09:20:49 +08:00
Max Lv
e62a73e67d
Set QoS flag for UDP forwarding
2016-08-08 09:15:29 +08:00
Max Lv
d319c0300c
Add mptcp option, close #756
2016-08-04 13:30:39 +08:00
Max Lv
34b9036b5b
Add MTU option
2016-08-03 11:53:28 +08:00
Max Lv
3f71b2a914
Fix #746
2016-07-29 16:57:36 +08:00
Max Lv
2f26412699
Add missing srand
2016-07-20 09:25:18 +08:00
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
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
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
YumeMichi
ebf24c1c01
Fix compile on 32-bit machine ( #593 )
...
redir.c:212:9: error: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘ssize_t’ [-Werror=format=]
LOGI("redir to %s:%d, len=%ld", ipstr, port, r);
^
2016-04-19 15:52:07 +08:00
Kim
3e0952de52
Refine verbose output in redir mode
...
* fix `ss-redir -v`.
It's now output messages while redirecting.
This is useful at the time building up a router.
* typo
* inet_ntop() -> dns_ntop()
* removed max().
max(INET_ADDRSTRLEN, INET6_ADDRSTRLEN) => INET6_ADDRSTRLEN
2016-04-19 14:05:12 +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
Max Lv
8539acd28f
Merge pull request #487 from Chion82/master
...
Enable TCP keep-alive feature for remote connections
2016-03-11 12:05:48 +08:00
Max Lv
da06378915
Clean up
2016-01-31 17:21:44 +08:00
Max Lv
2ac55a4a3f
Reduce the latency of ss-redir
2016-01-26 10:40:23 +08:00
Max Lv
e921f40aa8
Fix #493
2015-12-25 09:18:53 +08:00
Chion Tang
333c47a42a
Add keepalive feature for remote connections
2015-12-22 14:07:04 +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
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
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
5ae4df94e4
Update the hash function
2015-09-21 09:06:48 +08:00
Max Lv
53c2900b19
refine onetime auth
2015-09-17 09:59:52 +08:00
Max Lv
5c98a84fdd
refine log
2015-09-16 15:52:51 +08:00
Max Lv
703374cae8
fix a buf issue
2015-09-16 09:53:36 +08:00
Max Lv
2feb417e94
refine log
2015-09-16 09:33:52 +08:00
Max Lv
9e021aa919
add CRC8 for payload authentication
2015-09-15 12:28:02 +08:00