Commit Graph
2116 Commits
Author SHA1 Message Date
zonyitoo d45c19fafd fix(shadowsocks): revert #1195
`CLIENT` still keep the connection alive even `LOCAL` have already sent
`FIN` to it.

As a correct implementation of PROXY, we should not close the connection
if `CLIENT` didn't close it.
2023-05-18 23:32:28 +08:00
Emils f64cf8134f Allow creating UDP sockets on iOS 2023-05-18 10:24:08 +08:00
dependabot[bot] f19dc42bb1 chore(deps): bump sysexits from 0.5.0 to 0.6.0 (#1192) 2023-05-17 14:02:45 +00:00
zonyitoo 31b9fd832b trust-dns update to v0.23.0-alpha.* 2023-05-17 21:49:01 +08:00
zonyitoo 9e7ef95389 fix(shadowsocks): copy_encrypted_bidirectional set timeout when EOF
fix #1195

Set timeout on the other copy direction when the current one ends with
EOF to forcibly close the idling copy process when the timeout reaches.
Which should hopefully prevents connections stay in CLOSE-WAIT state
forever.
2023-05-17 21:40:11 +08:00
zonyitoo bf5d9a909a AEAD-2022 Ciphers keygen recommend
fix #1179
2023-05-05 23:41:45 +08:00
zonyitoo 34127b8270 fix(local): Add missing #[cfg(feature = "local-flow-stat")] 2023-05-05 03:28:52 +08:00
zonyitoo 57d27473fe update dependencies 2023-05-05 03:26:06 +08:00
zonyitoo c4cec6d8b1 feat(local): Local server builder pattern 2023-05-05 03:25:12 +08:00
zonyitoo bf3cd3542d feat(tun): TunBuilder follows other local builder pattern 2023-05-05 03:03:16 +08:00
zonyitoo 8d3461b24e feat(dns): DNS local server builder 2023-05-05 02:59:46 +08:00
zonyitoo ae1b8758d9 feat(redir): Redir local server builder 2023-05-05 02:39:49 +08:00
zonyitoo 14069a462a feat(tunnel): Tunnel local server builder 2023-05-05 02:23:02 +08:00
zonyitoo bdfd05a5b1 feat(http): Http local server builder 2023-05-05 02:02:00 +08:00
zonyitoo a1f7c4c25f feat(socks): Building Socks local server separately with builder 2023-05-05 01:50:13 +08:00
zonyitoo 5caa3a367b feat(manager): Allow building manager server separately without running 2023-05-05 00:54:47 +08:00
zonyitoo d0ab5d9e28 feat(server): Allow creating servers' listener separately
Build server with ServerBuilder, build() will create both TCP & UDP
    servers' listener, which will allow users to retrieve the actual
    listening address of the listeners.

    Basic feature support of #1185 .
2023-05-05 00:45:17 +08:00
zonyitoo 612d128022 README extended server config use "server" key 2023-05-05 00:45:17 +08:00
dependabot[bot] 43f6c6d5d4 Bump build-time from 0.1.2 to 0.1.3 (#1183) 2023-05-02 15:28:51 +00:00
dependabot[bot] 7b85fc1770 Bump clap from 4.2.2 to 4.2.5 (#1182) 2023-05-02 15:16:18 +00:00
dependabot[bot] 82d0ce0b9e Bump mimalloc from 0.1.36 to 0.1.37 (#1180) 2023-05-02 15:04:35 +00:00
zonyitoo 2a8d70063d document about ssservice genkey
ref #1179
2023-05-02 22:49:51 +08:00
dependabot[bot] a7af1c49e9 Bump xdg from 2.4.1 to 2.5.0 (#1181) 2023-05-02 14:36:26 +00:00
dependabot[bot] 3cde929eb0 Bump directories from 5.0.0 to 5.0.1 (#1184) 2023-05-02 14:24:24 +00:00
zonyitoo 1a5e57d2de chore(SIP003u): UDP log contains outbound and original addr 2023-04-16 15:02:27 +08:00
zonyitoo ed1ff2a685 document about SIP003u support 2023-04-16 14:32:33 +08:00
zonyitoo 586ec809b7 fix(plugin): start plugin process no matter what "mode" is running 2023-04-16 13:27:32 +08:00
zonyitoo c9c59f9664 feat(plugin): Support SIP003u, Plugin UDP mode
- ref shadowsocks/shadowsocks-org#180
- "plugin_mode" option in configuration file, and ssmanager API
- "plugin_mode" is "tcp_only" by default
- ref shadowsocks/shadowsocks-rust#1127
2023-04-15 18:30:22 +08:00
zonyitoo 2dff4ec4da trust-dns setsockopt with outbound socket configs
Outbound configurations, like outbound-fwmark, outbound-bind-interface,
         outbound-bind-addr, ... will also applies to the TCP/UDP
         sockets created by trust-dns DNS resolver.

NOTE: On Android platform, DNS sockets will also be protected.
2023-04-15 17:28:15 +08:00
zonyitoo c1f505ff7b feat(mptcp): MPTCP on Linux try to set keepalive time & interval
- TCP_KEEPIDLE, TCP_KEEPINTV may be supported in the future kernel
- multipath-tcp/mptcp_net-next#383
- ref #1156
2023-04-15 17:21:17 +08:00
XOR-op 8be8047f1f Make udprelay/crypto_io public 2023-04-14 18:07:26 +08:00
zonyitoo 7d7fb195f5 feat(mptcp): Basic implementation of Multipath-TCP
- Currently support macOS (Client Only) and Linux (> 5.19)
  - ref #1156
2023-04-05 23:19:50 +08:00
dependabot[bot] 35c8ae235c Bump webpki-roots from 0.22.6 to 0.23.0 (#1169) 2023-04-04 16:58:44 +00:00
zonyitoo 06a8334a02 local-redir: Linux Redirect (TCP) supports dual-stack listener
- fix #1159
- Updated socket2 to v0.5
- Updated other dependencies
2023-04-05 00:40:27 +08:00
dependabot[bot] 498e6a2446 Bump tokio-rustls from 0.23.4 to 0.24.0 (#1162) 2023-04-04 03:34:20 +00:00
dependabot[bot] c1e7f8af70 Bump windows-sys from 0.45.0 to 0.48.0 (#1167) 2023-04-04 03:12:28 +00:00
dependabot[bot] 0c51c998ce Bump spin from 0.9.6 to 0.9.8 (#1164) 2023-04-04 02:49:44 +00:00
dependabot[bot] a3ef35da79 Bump ipnet from 2.7.1 to 2.7.2 (#1163) 2023-04-04 02:31:34 +00:00
dependabot[bot] 05b4d68901 Bump clap from 4.1.11 to 4.2.1 (#1166) 2023-04-04 02:03:40 +00:00
dependabot[bot] 4b2b64a78a Bump sysexits from 0.4.1 to 0.5.0 (#1168) 2023-04-04 01:50:03 +00:00
dependabot[bot] 91028db4a3 Bump directories from 4.0.1 to 5.0.0 (#1154) 2023-03-20 16:33:43 +00:00
dependabot[bot] 2b6926c18a Bump clap from 4.1.8 to 4.1.11 (#1153) 2023-03-20 16:10:27 +00:00
dependabot[bot] 0e2a309f79 Bump thiserror from 1.0.38 to 1.0.40 (#1152) 2023-03-20 15:47:03 +00:00
dependabot[bot] d55da8024b Bump async-trait from 0.1.66 to 0.1.67 (#1155) 2023-03-20 15:28:32 +00:00
zonyitoo 115dba795d feat(tun): poll thread park only if tx channel is empty 2023-03-18 00:58:30 +08:00
zonyitoo ea3d33385f sslocal tun mode require snap network-control plug 2023-03-17 01:46:19 +08:00
zonyitoo 1f749407d0 fix(docker): speedup docker build process by dockerignore
The target folder may become very large, which will slow down docker
  build process quite a lot.
2023-03-16 23:37:45 +08:00
just1900 dcdb80b9f8 fix(image): change binary path in docker image to prevent it being overwrite in k8s deployment
Signed-off-by: just1900 <legendj228@gmail.com>
2023-03-16 23:36:31 +08:00
ty 08f350f317 Revert "Fix UPX compression issue."
This reverts commit 872e994fd1.
2023-03-15 12:14:24 +08:00
dependabot[bot] 8ae0bda759 Bump hyper from 0.14.24 to 0.14.25 (#1141) 2023-03-14 16:46:32 +00:00