Commit Graph
1863 Commits
Author SHA1 Message Date
zonyitoo 855f7fa8f1 allow sslocal run without servers (#818)
If no server was configured, then sslocal will bypass all connections
and packets.
2022-05-15 20:42:15 +08:00
zonyitoo 5146c7d20b apply timeout on server handshake 2022-05-15 19:14:13 +08:00
zonyitoo 365740a0a1 check REQUEST_SALT only when received at least 1 data chunk 2022-05-15 13:35:04 +08:00
zonyitoo f5c7956904 check REQUEST_SALT only when read() returns non-EOF 2022-05-15 13:23:29 +08:00
zonyitoo ce08be7a31 set SO_LINGER (0) for misbehav clients before close() 2022-05-15 11:49:01 +08:00
zonyitoo 03651f3968 make clippy happy 2022-05-15 01:34:35 +08:00
zonyitoo 3ce2e728ae fixed build warning on Windows 2022-05-15 01:13:29 +08:00
zonyitoo 2048cb1d51 AEAD-2022 TCP protocol breaking changes
1. Request Header (TYPE + TIMESTAMP + LENGTH) encrypted into 1 AEAD
   chunk
2. Response Header (TYPE + TIMESTAMP + REQUEST_SALT + LENGTH) encrypted
   into 1 AEAD chunk
3. Header MUST be read by 1 read() call
4. Reject with EOF/RST if failed to decrypt header

BREAKING: Not compatible with v1.15.0-alpha.1, v1.15.0-alpha.2,
  v1.15.0-alpha.3
2022-05-15 00:13:25 +08:00
zonyitoo 3678dd5f6a plain SIP002 method and password should be percent encoded 2022-05-12 23:37:45 +08:00
zonyitoo e58a0c4995 append remarks in url hash 2022-05-12 23:25:35 +08:00
zonyitoo 8156113402 aead-2022 cipher SIP002 URL should keep userinfo plaintext 2022-05-12 23:13:50 +08:00
zonyitoo a339461c13 fixed typo 2022-05-12 19:58:46 +08:00
zonyitoo eb4df55ed6 SIP002 extended format URL. Allowing non-encoded userinfo
https://github.com/shadowsocks/shadowsocks-org/issues/27#issuecomment-1124853747
2022-05-12 19:56:28 +08:00
zonyitoo a2bcd6987c add support aead-2022 in Notes 2022-05-12 15:53:32 +08:00
zonyitoo 811ba22490 update dependencies 2022-05-09 11:52:51 +08:00
zonyitoo fbb2090274 libc extra_traits have to be enabled v1.15.0-alpha.3 2022-05-08 21:46:32 +08:00
zonyitoo d4f2230094 nix 0.24.0 build failed on mips*-unknown-linux-musl targets
- https://github.com/nix-rust/nix/issues/1719
v1.15.0-alpha.2
2022-05-08 21:32:17 +08:00
zonyitoo 9d50c2d7c2 AEAD-2022 (SIP022) pre-release v1.15.0-alpha.1 2022-05-08 21:12:15 +08:00
zonyitoo d690167201 basic wrappers for sendmmsg/recvmmsg (#823) 2022-05-08 17:16:45 +08:00
zonyitoo 238b8f4f2d NixOS (nixpkg) release reference
- Thanks @marsam (https://github.com/marsam)
2022-05-08 15:07:40 +08:00
zonyitoo c9fa0ab3b9 fixed archlinux-cn badges 2022-05-07 18:46:27 +08:00
zonyitoo 8ac08c5166 Windows API switched to windows-sys 2022-05-07 00:29:14 +08:00
dependabot[bot] 2a5f40b5f7 Bump serde_json from 1.0.79 to 1.0.81
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.79 to 1.0.81.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.79...v1.0.81)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 07:22:05 +08:00
dependabot[bot] e5c7fea90c Bump clap from 3.1.14 to 3.1.15
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.14 to 3.1.15.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.14...v3.1.15)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 07:20:23 +08:00
NeverBehave 0f8ebecd7d fix(docs): JSON config usage update 2022-05-04 07:18:14 +08:00
dependabot[bot] 180eabe8bc Bump clap from 3.1.12 to 3.1.14
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.12 to 3.1.14.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.12...v3.1.14)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 07:17:29 +08:00
dependabot[bot] ceb8b74ae2 Bump serde_json from 1.0.79 to 1.0.80
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.79 to 1.0.80.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.79...v1.0.80)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 07:17:17 +08:00
dependabot[bot] de171185d5 Bump notify from 5.0.0-pre.14 to 5.0.0-pre.15
Bumps [notify](https://github.com/notify-rs/notify) from 5.0.0-pre.14 to 5.0.0-pre.15.
- [Release notes](https://github.com/notify-rs/notify/releases)
- [Changelog](https://github.com/notify-rs/notify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/notify-rs/notify/compare/5.0.0-pre.14...5.0.0-pre.15)

---
updated-dependencies:
- dependency-name: notify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 07:17:09 +08:00
dependabot[bot] 3c121142a3 Bump thiserror from 1.0.30 to 1.0.31
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.30 to 1.0.31.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.30...1.0.31)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 07:17:00 +08:00
dependabot[bot] 1b9e4dc92f Bump mimalloc from 0.1.28 to 0.1.29
Bumps [mimalloc](https://github.com/purpleprotocol/mimalloc_rust) from 0.1.28 to 0.1.29.
- [Release notes](https://github.com/purpleprotocol/mimalloc_rust/releases)
- [Commits](https://github.com/purpleprotocol/mimalloc_rust/compare/v0.1.28...v0.1.29)

---
updated-dependencies:
- dependency-name: mimalloc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 07:16:51 +08:00
xiazuojie 32f6a09d54 remove 2 targets 2022-04-27 00:20:12 +08:00
xiazuojie 608f7c0cea remove duplicated armv7-unknown-linux-musleabihf 2022-04-27 00:20:12 +08:00
xiazuojie a44514028e Update build-release.yml
add popular armv7 build targets
2022-04-27 00:20:12 +08:00
dependabot[bot] 2c5c9cf7b5 Bump nix from 0.23.1 to 0.24.1
Bumps [nix](https://github.com/nix-rust/nix) from 0.23.1 to 0.24.1.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.23.1...v0.24.1)

---
updated-dependencies:
- dependency-name: nix
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 22:29:33 +08:00
zonyitoo c10792e87e update dependencies 2022-04-25 00:10:23 +08:00
zonyitoo 6345e0ca9f prevent unnecessary poll on not created udp sockets 2022-04-25 00:09:52 +08:00
zonyitoo f059d4a4cb remember worker_count passed from configuration
tokio's metric APIs is not stablized yet:
https://github.com/tokio-rs/tokio/issues/4073
2022-04-25 00:01:27 +08:00
zonyitoo 9e13020960 server udp multicore recv (decrypt) 2022-04-24 11:56:56 +08:00
zonyitoo b81de123cf lower udp association channel full log level to debug 2022-04-23 00:09:13 +08:00
zonyitoo f6245e6849 shrink udp association send queue size 2022-04-23 00:01:30 +08:00
zonyitoo a3f1dcb2e3 updated shadowsocks-crypto for chacha8 crash in udp 2022-04-22 18:01:07 +08:00
zonyitoo 3b3dcac2d1 aead-cipher-2022-extra: supporting chacha8-poly1305 non-standard cipher 2022-04-22 16:25:57 +08:00
zonyitoo 7af20924e4 fixed warning 2022-04-22 14:28:15 +08:00
zonyitoo 995e3f3478 tcp-tfo test should handshake first 2022-04-22 13:25:53 +08:00
zonyitoo 2396245806 AEAD-2022 server check first chunk padding 2022-04-22 12:31:57 +08:00
zonyitoo 9633c5d07f check server stream handshaked before poll_read 2022-04-22 01:17:29 +08:00
zonyitoo dc86463068 local association remmeber server sessions with NAT expire time 2022-04-20 02:19:18 +08:00
zonyitoo b97d83ad5c completely remove use spin::Mutex 2022-04-20 02:00:41 +08:00
zonyitoo 427ad31c2d make clippy happy 2022-04-20 02:00:01 +08:00
zonyitoo 54954e7ac8 replay filter should remember 2*MAX_DIFF 2022-04-20 01:57:34 +08:00