nfalse
29b0a3345e
Fix the issue where the program exits when the operating system does not support TCP_FASTOPEN_CONNECT.
If the operating system does not support TCP_FASTOPEN_CONNECT or in a container environment, the service should still function normally, albeit with lower performance.
1 year ago
Maxim Galaganov
d61d09aa0c
Detect kernel support for MPTCP at runtime
2 years ago
Tristan Schmelcher
1630764b02
Fix --mptcp on kernels with mainlined MPTCP.
Mainlined MPTCP on Linux 5.6+ is enabled with IPPROTO_MPTCP rather than setsockopt.
3 years ago
Fabrice Fontaine
0c23224e92
fix maybe-uninitialized errors
Set {listen,server}_sock to -1 when needed as already done in
src/manager.c by commit ecf1fcc845
to
avoid the following build failure:
local.c: In function 'create_and_bind':
local.c:218:12: error: 'listen_sock' may be used uninitialized in this function [-Werror=maybe-uninitialized]
218 | return listen_sock;
| ^~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/27471a878ff52a972ac087d534e44fb0c50808f6
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3 years ago
Not Sure
b68157e6f7
Fix typo.
4 years ago
Not Sure
36d9993bbf
Add --tcp-incoming-rcvbuf and --tcp-outgoing-rcvbuf which allow precise control over TCP receive buffers.
4 years ago
Not Sure
5617841694
Add --tcp-incoming-sndbuf and --tcp-outgoing-sndbuf which allow precise control over TCP send buffers.
- This is very useful in advanced scenarios such as ss-redir or chaining of servers using TPROXY
to avoid bufferbloat-like performance degradation due to default large buffers of OS.
4 years ago
Mygod
355adddff1
Remove unused is_remote_dns option
5 years ago
Mygod
301fea635b
Remove sniparser
5 years ago
Max Lv
64b97cd9a3
Clean up
5 years ago
Max Lv
6c28add775
Enable -Wcas-align for #2412
5 years ago
WHR
63a991cc43
ss-local: improve verbose logging; print hit of missing option
6 years ago
Max Lv
a7291ea725
Enlarge the socket buffer size to 16KB.
After five years, memory footprint is not a problem for most of
low-end boxes and high-end routers now.
It should also improve the speed on loopback and high-speed LAN
networks.
6 years ago
Chinsyo
7bd382042b
bump copyright year
6 years ago
Max Lv
3fa9e57248
Refine ipv6only handling
6 years ago
Max Lv
14dd82045e
Refine json config handling. #2308
6 years ago
Max Lv
144138788b
Refine ipv6 only handling. #2300
6 years ago
Max Lv
404ec62b79
Fix #2285
6 years ago
Max Lv
b430124ed8
Refine is_remote_dns defination
6 years ago
Max Lv
782311ad2b
Refine ss_align interfaces
6 years ago
Max Lv
d6b21daa9c
Refine ACL log
6 years ago
Max Lv
c33cf3efc0
Fix #2267
6 years ago
Max Lv
7ad2df9615
Remove all connection timeout from local clients
6 years ago
Mygod
dc298c4f2b
Allow long direct TCP connections
Fixes https://github.com/shadowsocks/shadowsocks-android/issues/2078 .
6 years ago
Mygod
641e4ed9c8
Refine passing plugin args
Refine 68f885c271
. Somehow I postponed this change for 8 months. Good job me!
6 years ago
Mygod
7fc05dcd9d
Specify stat_path on Android
6 years ago
JS Deck
910e29abba
Make local address 0.0.0.0 work with udp relay
6 years ago
JS Deck
4a51c2858e
Fix udp relay when tcp only (e.g. for use with kcptun)
6 years ago
Max Lv
482040a5dd
Fix a potential stackoverflow issue
6 years ago
Max Lv
57e74eaa34
Fix a bug in bypassing
6 years ago
Max Lv
dd5e954ab4
Clean up
6 years ago
Mygod
307088ed4a
Support hostname resolving in VPN mode
6 years ago
sxyoxygen
059780ff9b
Update local.c
6 years ago
Mygod
d107f9ecdb
More bugfix
6 years ago
Max Lv
fad3ca59e7
Revert "Refine ip initialization"
This reverts commit 9a56155513
.
6 years ago
Max Lv
9a56155513
Refine ip initialization
6 years ago
Mygod
4a97acd44e
Refine local server_handshake
* Removed STAGE_PARSE and the 5-year-old hacky "fake" reply;
* SOCKS5 server returns more error code than 0x07;
* Ensure `ip` is initialized in all cases; (I guess security guys don't want to audit the local part)
* Code more readable magically.
6 years ago
Max Lv
11a0d8db60
Reset timer in server_stream as well
6 years ago
Yegor Ievlev
8fd83e2686
Use chacha20-ietf as a default cipher instead of rc4-md5 ( #2080 )
* Use chacha20-ietf as a default cipher instead of rc4-md5
* Update tunnel.c
* Update utils.c
* Update ss-local.asciidoc
* Update ss-local.asciidoc
* Update tunnel.c
* Update ss-tunnel.asciidoc
* Update ss-manager.asciidoc
* Update ss-redir.asciidoc
* Update shadowsocks-libev.asciidoc
* Update aead.c
* Update local.c
* Update server.c
* Update utils.c
7 years ago
Max Lv
dada99c5b6
Fix the SNI issue
7 years ago
Max Lv
2c2063a792
Fix a warning on Android
7 years ago
Max Lv
d4298f71f0
Refine the code structure
7 years ago
Rallets
5d17c0431f
Ignore SIGCHLD for library usage
7 years ago
Mygod
a4c9059ffe
Fix all routing not working in Android
This reverts commit 66ed595c52
.
7 years ago
Max Lv
3e7c852970
Fix a crash
7 years ago
Max Lv
cd72e28bcb
Add missing option
7 years ago
Max Lv
7e414bb993
Disable SNI when DNS forwarding enabled
7 years ago
Max Lv
66ed595c52
Add back the SNI addr reconstructor
7 years ago
Linus Yang
1f9dd2fbf4
MinGW: fix socket closing in wrong place
7 years ago
Linus Yang
14fb82b966
Enable plugins on MinGW
7 years ago