Max Lv
0acc79b430
Fix UDP relay when plugin enabled
8 years ago
Max Lv
92f0baa789
Update SIP003 interfaces
8 years ago
Max Lv
3fde843ec8
Fix #1061
8 years ago
Max Lv
94a341fe2c
Refine SIGCHLD handling
8 years ago
Max Lv
77da84fb21
Validate hostname in redir mode #1047
8 years ago
Max Lv
97c58ad44d
Refine signal handling
8 years ago
Max Lv
61b82c45c5
Add SIP003 plugin support ( #1044 )
https://github.com/shadowsocks/shadowsocks-org/issues/28
8 years ago
Max Lv
80565eece1
Refine the log of obfuscating
8 years ago
Max Lv
8cb4f81eba
Add HTTP/TLS obfuscating. [SIP001] ( #1009 )
Add experimental HTTP/TLS obfuscating as an **optional extension** of shadowsocks protocol.
More discussions can be found here: https://github.com/shadowsocks/shadowsocks-org/issues/26
As this feature is still a SIP (Shadowsocks Improvement Proposal), it's very unstable and experimental. So,
1. Don't enable it unless you know what it is.
2. Be very careful when using it in production environment.
8 years ago
Max Lv
32f52dabf9
Fix #1008
8 years ago
Syrone Wong
e6c0780435
memset zero before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
9db8c3abe8
zeroize some structs before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Max Lv
b7e5a97a74
Fix building error of ss-redir
8 years ago
Max Lv
25cc062e5d
Use cork_container_of instead
8 years ago
Max Lv
a63a33861f
Add container_of
8 years ago
Syrone Wong
baff29e970
Fix issues found by cppcheck
- GNU treats void* as char* when doing pointer arithmetic, so let's make it clear
- Fix memory leak, save copy from malloc() and pass the original pointer to free()
- minor type mismatches
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Rayson zhu
a8fdd77fbf
add `user` config option
8 years ago
Max Lv
52e391962f
Add option for firewall rules
8 years ago
Max Lv
79a98a66d8
Refine geteuid()
8 years ago
Max Lv
2b7c487b09
Refine #954
8 years ago
Max Lv
6d9331a56d
Fix #954
8 years ago
Rayson Zhu
07d2b1a005
exit when running as a nonexistent user and warn when running as root
8 years ago
Max Lv
5cd294879b
Add -6 option for #942
8 years ago
Max Lv
980d801a79
Add timeout support in ss-redir
8 years ago
Max Lv
85a5c86637
Refine LRU cache by clearing old objects
8 years ago
Max Lv
7029cfca3a
Refine event handling
8 years ago
Max Lv
efafb59647
Fix #863
8 years ago
Kim
7455eb387d
fixed: remove color log ( #839 )
8 years ago
Max Lv
5ee00d2647
Clean up
8 years ago
Max Lv
b28638ab80
Clean up
8 years ago
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
8 years ago
Max Lv
9a43cc6e6b
Fix #781
9 years ago
Max Lv
5812840b24
Fix typo
9 years ago
Max Lv
46afbdcfd6
Refine incomplete header handling
9 years ago
Max Lv
722d8d0c62
Fix build on Linux
9 years ago
Max Lv
1df8d06e3e
Refine QoS flag for UDP forwarding
9 years ago
Max Lv
e62a73e67d
Set QoS flag for UDP forwarding
9 years ago
Max Lv
d319c0300c
Add mptcp option, close #756
9 years ago
Max Lv
34b9036b5b
Add MTU option
9 years ago
Max Lv
3f71b2a914
Fix #746
9 years ago
Max Lv
2f26412699
Add missing srand
9 years ago
Max Lv
bf210be2b7
Refine #690
9 years ago
Max Lv
55dea8b973
Fix #690
9 years ago
Max Lv
0cfae045e8
Fix #648
9 years ago
Max Lv
fe22a6c90b
Refine error handling of connect()
9 years ago
Max Lv
72ee77ea35
Fix #615
9 years ago
Kim
08f873adc7
Roll up year to 2016
9 years ago
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
9 years ago
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);
^
9 years ago
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
9 years ago