Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
781 commits
Select commit Hold shift + click to select a range
04ea2ea
support "acl" and "outbound_fwmark" in configuration
zonyitoo May 24, 2022
d384a9d
Bump hyper from 0.14.18 to 0.14.19
dependabot[bot] May 30, 2022
2107d3d
Bump jemallocator from 0.3.2 to 0.5.0
dependabot[bot] May 30, 2022
706d20e
Bump once_cell from 1.11.0 to 1.12.0
dependabot[bot] May 30, 2022
c9f7a7b
properly handle IPv4-mapped-IPv6 target addresses in response
zonyitoo Jun 2, 2022
0137258
tun udp target/peer type match, socks5 udp IPv4-mapped-IPv6 always co…
zonyitoo Jun 3, 2022
946bfdd
Add instructions for Homebrew
CourierKyn Jun 4, 2022
548771b
Bump async-trait from 0.1.53 to 0.1.56
dependabot[bot] Jun 6, 2022
e84e76a
Bump snmalloc-rs from 0.2.28 to 0.3.0
dependabot[bot] Jun 6, 2022
6036d8c
local-stat-report support TCP destination (#860)
zonyitoo Jun 10, 2022
c14b1c5
support "tun_device_fd_from_path" in configure (#856)
zonyitoo Jun 10, 2022
28be25e
Android doesn't support obtaining MTU from tun fd (#856)
zonyitoo Jun 10, 2022
a1bfdd2
Android tun doesn't have PI (#856)
zonyitoo Jun 11, 2022
f57d506
Change the return type of the `main` function
sorairolake Jun 13, 2022
9583f6b
Bump snmalloc-rs from 0.3.0 to 0.3.1
dependabot[bot] Jun 13, 2022
92536e6
update dependencies, MSRV 1.61
zonyitoo Jun 17, 2022
ac225f0
EXPERIMENTAL: AEAD-2022 Extensible Identity Headers
zonyitoo Jun 20, 2022
83c4005
blake3 deps by config.rs
zonyitoo Jun 20, 2022
a354622
precise ProtocolError representation
zonyitoo Jun 23, 2022
1efb02e
Binaries spit out correct exit codes
spyophobia Jun 23, 2022
cab8d0f
chosen
zonyitoo Jun 24, 2022
03ce36f
make clippy happy
zonyitoo Jun 24, 2022
d7c0c48
update dependencies
zonyitoo Jun 24, 2022
2c9b313
remove unnecessary hint in recv log
zonyitoo Jun 24, 2022
66dec4e
udp eih user opt with Arc shared instance
zonyitoo Jun 24, 2022
a4955a1
improve ServerUser log format
zonyitoo Jun 25, 2022
b7afef5
aead-2022 tcp client no check nonce replay
zonyitoo Jun 28, 2022
fd4f1f1
add yield to loop for udp relay down stream speed low
wangjian1009 Jun 28, 2022
64ad58b
switch user with -a, docker adds entrypoint script, #876
zonyitoo Jun 28, 2022
0f72001
fallback getpwnam if uid not exists
zonyitoo Jun 28, 2022
59e80ff
move Dockerfile to workspace root
zonyitoo Jun 28, 2022
7ce6945
Minor update
vndroid Jun 29, 2022
ed4bea6
Update
vndroid Jun 29, 2022
5916909
Revert "add yield to loop for udp relay down stream speed low"
zonyitoo Jun 29, 2022
7f52741
Bump serde_json from 1.0.81 to 1.0.82
dependabot[bot] Jul 4, 2022
0ce1131
Bump clap from 3.2.7 to 3.2.8
dependabot[bot] Jul 4, 2022
8655fa3
Bump sendfd from 0.4.1 to 0.4.3
dependabot[bot] Jul 4, 2022
87bdacc
Bump pin-project from 1.0.10 to 1.0.11
dependabot[bot] Jul 4, 2022
739b49b
Bump once_cell from 1.12.0 to 1.12.1
dependabot[bot] Jul 4, 2022
5045934
Bump once_cell from 1.12.1 to 1.13.0
dependabot[bot] Jul 5, 2022
bfd0437
no warning for running from root user
zonyitoo Jul 5, 2022
c5f7caa
Update broken Wiki/documentation URLs
ValdikSS Jul 7, 2022
0540912
Fix typo in file 'dns_resolver.rs'.
oing9179 Jul 12, 2022
e972f08
ignore TCP_REDIR, UDP_REDIR if not supported on the current platform
zonyitoo Jul 17, 2022
f533195
updated dependencies
zonyitoo Jul 17, 2022
ee44301
v1.15.0-alpha.6
zonyitoo Jul 17, 2022
f6fd547
Bump nix from 0.24.1 to 0.24.2
dependabot[bot] Jul 18, 2022
60668a5
Bump etherparse from 0.10.1 to 0.11.0
dependabot[bot] Jul 18, 2022
1592073
Bump rpassword from 6.0.1 to 7.0.0
dependabot[bot] Jul 18, 2022
e1fc984
v1.15.0-alpha.7
zonyitoo Jul 19, 2022
afdbdd9
set PATH with MUSL bin
zonyitoo Jul 19, 2022
0416679
docker build with nightly
zonyitoo Jul 19, 2022
b0af7df
override before add target
zonyitoo Jul 19, 2022
ca0e85d
put CC inline
zonyitoo Jul 19, 2022
f8a957b
updated dependencies
zonyitoo Jul 22, 2022
5ba94dc
Bump etherparse from 0.11.0 to 0.12.0
dependabot[bot] Jul 25, 2022
7b1e792
Bump bytes from 1.2.0 to 1.2.1
dependabot[bot] Aug 1, 2022
059dca6
Bump arc-swap from 1.5.0 to 1.5.1
dependabot[bot] Aug 1, 2022
64e9176
Bump async-trait from 0.1.56 to 0.1.57
dependabot[bot] Aug 1, 2022
027ef08
Bump clap from 3.2.14 to 3.2.16
dependabot[bot] Aug 1, 2022
c2bc06c
check AtomicU64 with target_has_atomic, fixed #924
zonyitoo Aug 16, 2022
aec0c05
update dependencies
zonyitoo Aug 21, 2022
ac33469
Bump nix from 0.24.2 to 0.25.0
dependabot[bot] Aug 21, 2022
daf28e1
Bump serde_json from 1.0.83 to 1.0.85
dependabot[bot] Aug 22, 2022
0afab23
Helm: add service annotations
matrix-root Jul 26, 2022
0c3aeb2
updated dependencies
zonyitoo Sep 3, 2022
f411ead
Bump thiserror from 1.0.33 to 1.0.34
dependabot[bot] Sep 5, 2022
e527ca5
Bump trust-dns-proto from 0.21.2 to 0.22.0
dependabot[bot] Sep 5, 2022
1947eb1
Bump trust-dns-resolver from 0.21.2 to 0.22.0
dependabot[bot] Sep 6, 2022
26b2a1d
🚮 Remove `security-iv-printable-prefix` feature
database64128 Sep 12, 2022
7b73b8e
Bump idna from 0.2.3 to 0.3.0
dependabot[bot] Sep 12, 2022
0b6defe
Bump env_logger from 0.9.0 to 0.9.1
dependabot[bot] Sep 19, 2022
1d7841e
Bump clap from 3.2.20 to 3.2.22
dependabot[bot] Sep 19, 2022
6833313
Bump thiserror from 1.0.34 to 1.0.35
dependabot[bot] Sep 20, 2022
00df9d3
Bump sysexits from 0.3.1 to 0.3.2
dependabot[bot] Sep 20, 2022
547d792
Bump webpki-roots from 0.22.4 to 0.22.5
dependabot[bot] Sep 26, 2022
1034b0c
Bump once_cell from 1.14.0 to 1.15.0
dependabot[bot] Sep 26, 2022
6772e3e
Bump thiserror from 1.0.35 to 1.0.36
dependabot[bot] Sep 26, 2022
f06dd33
fix a typo
lwintermelon Oct 1, 2022
a2beae0
Bump thiserror from 1.0.36 to 1.0.37
dependabot[bot] Oct 3, 2022
57800f2
Bump windows-sys from 0.36.1 to 0.42.0
dependabot[bot] Oct 3, 2022
817f106
upgrade clap v4.0
zonyitoo Oct 7, 2022
8817e04
enable dual-stack for redir sockets
zonyitoo Oct 7, 2022
91b3bfa
fixed RemoteDnsAddress parsing
zonyitoo Oct 7, 2022
6c5882e
fixed NOFILE command line argument
zonyitoo Oct 7, 2022
7ddd091
release v1.15.0-alpha.9
zonyitoo Oct 8, 2022
9bed0c6
updated example tproxy script
zonyitoo Oct 8, 2022
0c93874
openwrt procd example script
zonyitoo Oct 8, 2022
3071716
Bump clap from 4.0.10 to 4.0.11
dependabot[bot] Oct 10, 2022
5b8778b
Bump serde_json from 1.0.85 to 1.0.86
dependabot[bot] Oct 10, 2022
eaaf67c
procd jail mount configuration files
zonyitoo Oct 10, 2022
5c87d1a
redir config doc in README
zonyitoo Oct 12, 2022
a1d7d32
Bump mimalloc from 0.1.29 to 0.1.30
dependabot[bot] Oct 17, 2022
10ff0e6
Bump log4rs from 1.1.1 to 1.2.0
dependabot[bot] Oct 17, 2022
0d6bfa3
Bump clap from 4.0.11 to 4.0.15
dependabot[bot] Oct 17, 2022
45cc770
ssservice genkey, helper for generate encryption key
zonyitoo Oct 17, 2022
669b337
updated dependencies
zonyitoo Oct 17, 2022
18724c4
updated dependencies
zonyitoo Oct 22, 2022
ab6a6f6
fix(ssurl): use `percent_decode_str` for `userinfo` encoded data (#985)
RAX7 Oct 26, 2022
2621e19
updated dependencies, Swatinem/rust-cache@v2
zonyitoo Oct 29, 2022
90cdbf9
Implemented poll_* family functions on UDP ProxySocket (#987)
ibigbug Oct 29, 2022
c78e632
removed unused shadowsocks-tools
zonyitoo Oct 29, 2022
b57fd76
Linux/BSD SO_REUSEPORT compatible for old version kernels
zonyitoo Oct 29, 2022
b1fae61
updated once_cell
zonyitoo Oct 29, 2022
69b91b2
fixed unnecessary return
zonyitoo Oct 29, 2022
eccebfa
fixed missing import of warn!, trace!, error!
zonyitoo Oct 29, 2022
96500c1
Update shadowsocks-rust.rb (#992)
robberphex Oct 31, 2022
3cc3128
update dependencies
zonyitoo Nov 21, 2022
ff3590a
macOS runner already builtin Xcode 13.2.1
zonyitoo Nov 21, 2022
5fd7ec6
update dependencies
zonyitoo Dec 8, 2022
bd5badb
upgrade shadowsocks-crypto
zonyitoo Dec 10, 2022
65519c2
Bump nix from 0.25.0 to 0.26.1
dependabot[bot] Dec 10, 2022
e1f96d4
Bump env_logger from 0.9.3 to 0.10.0
dependabot[bot] Dec 10, 2022
8b1e4c5
upgrade etherparse 0.13
zonyitoo Dec 10, 2022
8953210
"acl" is available in ext-config "servers" & "locals"
zonyitoo Dec 10, 2022
b93aab2
Bump webpki-roots from 0.22.5 to 0.22.6
dependabot[bot] Dec 12, 2022
6ae23e1
Bump ipnet from 2.6.0 to 2.7.0
dependabot[bot] Dec 12, 2022
a35bbd4
upgrade shadowsocks-crypto
zonyitoo Dec 13, 2022
d8938ac
fix local-dns compile error
zonyitoo Dec 15, 2022
2669682
release v1.15.0
zonyitoo Dec 17, 2022
e05ab8a
upgrade Dockerfile and Debian/changelog
zonyitoo Dec 17, 2022
6c32278
upgrade homebrew script
zonyitoo Dec 17, 2022
49fd1cf
upgrade tests, remove deps to Xcode 12
zonyitoo Dec 17, 2022
a25145b
update homebrew script, v1.15.0 retagged
zonyitoo Dec 17, 2022
8cfe8c1
Build with stable Rust >= 1.64
zonyitoo Dec 17, 2022
990ffb9
separates clippy check to clippy-check workflow
zonyitoo Dec 17, 2022
3b802b0
release v1.15.1, prebuilt releases use stable Rust
zonyitoo Dec 17, 2022
26a04b9
build nightly with cargo-zigbuild
zonyitoo Dec 17, 2022
e3855b4
clippy --fix
zonyitoo Dec 18, 2022
ba0a3e0
Bump async-trait from 0.1.59 to 0.1.60
dependabot[bot] Dec 19, 2022
4d5f6c7
Bump thiserror from 1.0.37 to 1.0.38
dependabot[bot] Dec 19, 2022
9523eec
Bump serde_json from 1.0.89 to 1.0.91
dependabot[bot] Dec 19, 2022
85c99b9
ACL IP rules compatible with IPv4-mapped-IPv6
zonyitoo Dec 20, 2022
857da6d
clippy --fix style & potential bugs
zonyitoo Dec 21, 2022
0d44694
cargo fmt
zonyitoo Dec 21, 2022
e5f0ab9
release v1.15.2
zonyitoo Dec 24, 2022
acc80ee
homebrew v1.15.2
zonyitoo Dec 24, 2022
fd26912
Bump clap from 4.0.29 to 4.0.32
dependabot[bot] Dec 26, 2022
594a263
Bump num_cpus from 1.14.0 to 1.15.0
dependabot[bot] Dec 26, 2022
5545f4d
Bump once_cell from 1.16.0 to 1.17.0 (#1072)
dependabot[bot] Jan 2, 2023
7faea23
Bump arc-swap from 1.5.1 to 1.6.0 (#1074)
dependabot[bot] Jan 2, 2023
8b3d1b5
Bump sysexits from 0.3.4 to 0.4.0 (#1073)
dependabot[bot] Jan 2, 2023
d826b0a
Support outbound socket options in configuration
zonyitoo Jan 7, 2023
163b2d2
update dependencies
zonyitoo Jan 7, 2023
3948d6d
bugfix: salt recheck will cause duplicated iv/salt error
chuxi Jan 13, 2023
a47335e
Bump ipnet from 2.7.0 to 2.7.1 (#1080)
dependabot[bot] Jan 13, 2023
de3b932
Bump mimalloc from 0.1.32 to 0.1.34 (#1079)
dependabot[bot] Jan 13, 2023
5430fec
Bump base64 from 0.13.1 to 0.21.0 (#1081)
dependabot[bot] Jan 15, 2023
fe817a1
#1088 disable snap daemons by default
fertkir Jan 16, 2023
c87eadb
Bump clap from 4.0.32 to 4.1.1 (#1091)
dependabot[bot] Jan 16, 2023
c3c0727
Bump nix from 0.26.1 to 0.26.2 (#1098)
dependabot[bot] Jan 23, 2023
a6ebdb6
Bump async-trait from 0.1.61 to 0.1.63 (#1097)
dependabot[bot] Jan 23, 2023
f514f4d
Bump windows-sys from 0.42.0 to 0.45.0 (#1096)
dependabot[bot] Jan 23, 2023
02f87ba
Enable tun destination configuration
Jan 27, 2023
1c9bac4
update dependencies
zonyitoo Jan 28, 2023
1647624
Set missing ipv6_first in manager
zonyitoo Jan 30, 2023
92c218d
Bump notify from 5.0.0 to 5.1.0 (#1103)
dependabot[bot] Jan 31, 2023
29991bc
⛔ config: deny unknown fields
database64128 Feb 4, 2023
a9601f3
update dependencies
zonyitoo Feb 5, 2023
c0cb586
Revert "⛔ config: deny unknown fields"
zonyitoo Feb 5, 2023
58c1761
local-redir UDP compatible with Linux < 2.6.37
zonyitoo Feb 5, 2023
622f01a
local-redir converts IPv4-mapped-IPv6 to IPv4 for retry
zonyitoo Feb 5, 2023
9ff5b58
Bump spin from 0.9.4 to 0.9.5 (#1116)
dependabot[bot] Feb 15, 2023
b03f52d
Bump tokio-native-tls from 0.3.0 to 0.3.1 (#1114)
dependabot[bot] Feb 15, 2023
39de3ba
Bump serde_json from 1.0.92 to 1.0.93 (#1115)
dependabot[bot] Feb 15, 2023
49df0eb
Bump smoltcp from 0.8.2 to 0.9.1 (#1117)
dependabot[bot] Feb 17, 2023
872e994
Fix UPX compression issue.
riKirsti Feb 20, 2023
7ab8844
update dependencies
zonyitoo Feb 20, 2023
18c08de
macOS fix netmask API (#1118)
BranLiang Feb 26, 2023
b382920
relax requirement of base64 padding in configuration
zonyitoo Feb 26, 2023
23182d0
Update docker base image
vndroid Mar 8, 2023
08bf30a
local-tun: wake poll thread on every read/write calls
zonyitoo Mar 12, 2023
549ffd3
local-tun: Manage TCP socket state properly
zonyitoo Mar 12, 2023
9767c3b
release v1.15.3
zonyitoo Mar 12, 2023
6d24567
update v1.15.3 homebrew hash
zonyitoo Mar 12, 2023
916e162
Update actions/checkout to v3
zedifen Jan 14, 2023
3bf205f
Get rid of actions-rs/toolchain
zedifen Jan 14, 2023
024bd87
Update docker workflow dependencies
zedifen Jan 15, 2023
9ec7035
Update actions/upload-artifact to v3
zedifen Jan 15, 2023
f155813
Update .github/workflows/clippy-check.yml
zedifen Jan 21, 2023
5252941
Removing unused action arguments
zedifen Jan 21, 2023
2bcf2a5
Use actions-rs-plus/clippy-check
zedifen Jan 21, 2023
fdeb0f8
Merge pull request #1086 from zedifen/fix-set-output
zonyitoo Mar 14, 2023
f66320b
Bump spin from 0.9.5 to 0.9.6 (#1142)
dependabot[bot] Mar 14, 2023
d0d4273
Bump async-trait from 0.1.64 to 0.1.66 (#1129)
dependabot[bot] Mar 14, 2023
75f3522
Bump daemonize from 0.4.1 to 0.5.0 (#1125)
dependabot[bot] Mar 14, 2023
9837756
Bump clap from 4.1.6 to 4.1.8 (#1130)
dependabot[bot] Mar 14, 2023
c1f8215
Bump serde_json from 1.0.93 to 1.0.94 (#1132)
dependabot[bot] Mar 14, 2023
88f0330
Bump futures from 0.3.26 to 0.3.27 (#1140)
dependabot[bot] Mar 14, 2023
8ae0bda
Bump hyper from 0.14.24 to 0.14.25 (#1141)
dependabot[bot] Mar 14, 2023
08f350f
Revert "Fix UPX compression issue."
zonyitoo Mar 15, 2023
dcdb80b
fix(image): change binary path in docker image to prevent it being ov…
just1900 Mar 16, 2023
1f74940
fix(docker): speedup docker build process by dockerignore
zonyitoo Mar 16, 2023
ea3d333
sslocal tun mode require snap network-control plug
zonyitoo Mar 16, 2023
115dba7
feat(tun): poll thread park only if tx channel is empty
zonyitoo Mar 17, 2023
d55da80
Bump async-trait from 0.1.66 to 0.1.67 (#1155)
dependabot[bot] Mar 20, 2023
0e2a309
Bump thiserror from 1.0.38 to 1.0.40 (#1152)
dependabot[bot] Mar 20, 2023
2b6926c
Bump clap from 4.1.8 to 4.1.11 (#1153)
dependabot[bot] Mar 20, 2023
91028db
Bump directories from 4.0.1 to 5.0.0 (#1154)
dependabot[bot] Mar 20, 2023
4b2b64a
Bump sysexits from 0.4.1 to 0.5.0 (#1168)
dependabot[bot] Apr 4, 2023
05b4d68
Bump clap from 4.1.11 to 4.2.1 (#1166)
dependabot[bot] Apr 4, 2023
a3ef35d
Bump ipnet from 2.7.1 to 2.7.2 (#1163)
dependabot[bot] Apr 4, 2023
0c51c99
Bump spin from 0.9.6 to 0.9.8 (#1164)
dependabot[bot] Apr 4, 2023
c1e7f8a
Bump windows-sys from 0.45.0 to 0.48.0 (#1167)
dependabot[bot] Apr 4, 2023
498e6a2
Bump tokio-rustls from 0.23.4 to 0.24.0 (#1162)
dependabot[bot] Apr 4, 2023
06a8334
local-redir: Linux Redirect (TCP) supports dual-stack listener
zonyitoo Apr 4, 2023
35c8ae2
Bump webpki-roots from 0.22.6 to 0.23.0 (#1169)
dependabot[bot] Apr 4, 2023
7d7fb19
feat(mptcp): Basic implementation of Multipath-TCP
zonyitoo Mar 24, 2023
8be8047
Make udprelay/crypto_io public
XOR-op Apr 14, 2023
c1f505f
feat(mptcp): MPTCP on Linux try to set keepalive time & interval
zonyitoo Apr 15, 2023
2dff4ec
trust-dns setsockopt with outbound socket configs
zonyitoo Mar 12, 2023
c9c59f9
feat(plugin): Support SIP003u, Plugin UDP mode
zonyitoo Apr 15, 2023
586ec80
fix(plugin): start plugin process no matter what "mode" is running
zonyitoo Apr 16, 2023
ed1ff2a
document about SIP003u support
zonyitoo Apr 16, 2023
1a5e57d
chore(SIP003u): UDP log contains outbound and original addr
zonyitoo Apr 16, 2023
3cde929
Bump directories from 5.0.0 to 5.0.1 (#1184)
dependabot[bot] May 2, 2023
a7af1c4
Bump xdg from 2.4.1 to 2.5.0 (#1181)
dependabot[bot] May 2, 2023
2a8d700
document about ssservice genkey
zonyitoo May 2, 2023
82d0ce0
Bump mimalloc from 0.1.36 to 0.1.37 (#1180)
dependabot[bot] May 2, 2023
7b85fc1
Bump clap from 4.2.2 to 4.2.5 (#1182)
dependabot[bot] May 2, 2023
43f6c6d
Bump build-time from 0.1.2 to 0.1.3 (#1183)
dependabot[bot] May 2, 2023
612d128
README extended server config use "server" key
zonyitoo May 4, 2023
d0ab5d9
feat(server): Allow creating servers' listener separately
zonyitoo May 4, 2023
5caa3a3
feat(manager): Allow building manager server separately without running
zonyitoo May 4, 2023
a1f7c4c
feat(socks): Building Socks local server separately with builder
zonyitoo May 4, 2023
bdfd05a
feat(http): Http local server builder
zonyitoo May 4, 2023
14069a4
feat(tunnel): Tunnel local server builder
zonyitoo May 4, 2023
ae1b875
feat(redir): Redir local server builder
zonyitoo May 4, 2023
8d3461b
feat(dns): DNS local server builder
zonyitoo May 4, 2023
bf3cd35
feat(tun): TunBuilder follows other local builder pattern
zonyitoo May 4, 2023
c4cec6d
feat(local): Local server builder pattern
zonyitoo May 4, 2023
57d2747
update dependencies
zonyitoo May 4, 2023
34127b8
fix(local): Add missing #[cfg(feature = "local-flow-stat")]
zonyitoo May 4, 2023
bf5d9a9
AEAD-2022 Ciphers keygen recommend
zonyitoo May 5, 2023
9e7ef95
fix(shadowsocks): copy_encrypted_bidirectional set timeout when EOF
zonyitoo May 17, 2023
31b9fd8
trust-dns update to v0.23.0-alpha.*
zonyitoo May 17, 2023
f19dc42
chore(deps): bump sysexits from 0.5.0 to 0.6.0 (#1192)
dependabot[bot] May 17, 2023
f64cf81
Allow creating UDP sockets on iOS
pinkisemils Apr 17, 2023
d45c19f
fix(shadowsocks): revert #1195
zonyitoo May 18, 2023
736df14
updated notify to v6.0
zonyitoo May 18, 2023
0c4f9da
Update README.md
NimaQu May 23, 2023
aab03a0
chore(deps): bump once_cell from 1.17.1 to 1.17.2 (#1208)
dependabot[bot] May 30, 2023
cd6860d
chore(deps): bump log from 0.4.17 to 0.4.18 (#1207)
dependabot[bot] May 30, 2023
3815db5
chore(deps): bump clap from 4.2.7 to 4.3.0 (#1199)
dependabot[bot] May 30, 2023
02d8b6a
chore(deps): bump base64 from 0.21.0 to 0.21.2 (#1206)
dependabot[bot] May 30, 2023
1973a7e
update dependencies
zonyitoo Jun 3, 2023
702690f
fix(shadowsocks): trust-dns AsyncResolver::new no Result
zonyitoo Jun 3, 2023
8a0a98a
trust-dns 0.23.0-alpha.4 ConnectionProvider, update dependencies
zonyitoo Jun 12, 2023
c2877c1
fix buffer memory alignment
zonyitoo Jun 12, 2023
67232c3
Added configs for snap daemons (#1204)
fertkir Jun 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .cargo/config.toml

This file was deleted.

8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/.git
.circleci
.devcontainer
.github
.ssh
.vscode
**/target
dev
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
ignore:
- dependency-name: libc
versions:
- 0.2.92
- dependency-name: tokio
versions:
- 1.4.0
- dependency-name: bloomfilter
versions:
- 1.0.5
- dependency-name: regex
versions:
- 1.4.5
- dependency-name: serde
versions:
- 1.0.124
- dependency-name: tower
versions:
- 0.4.6
96 changes: 28 additions & 68 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,80 +8,40 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Ctarget-feature=+aes,+ssse3"
RUST_LOG: "shadowsocks=trace"
RUST_LOG: "trace"

jobs:
build-linux:
runs-on: ubuntu-latest
buid-test-check:
strategy:
matrix:
platform:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Build & Test (Default)
run: cargo test --verbose --no-fail-fast
- name: Build & Test (--no-default-features)
run: cargo test --verbose --no-default-features --no-fail-fast
- name: Build with All Features Enabled
run: cargo build --verbose --features "local-redir local-dns dns-over-tls dns-over-https stream-cipher"

build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Build & Test (Default)
run: cargo test --verbose --no-fail-fast
- name: Build & Test (--no-default-features)
run: cargo test --verbose --no-default-features --no-fail-fast
- name: Build with All Features Enabled
run: cargo build --verbose --features "local-dns dns-over-tls dns-over-https stream-cipher"

build-macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Install GNU tar
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install Rust
run: |
brew install gnu-tar
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
- name: Build & Test (Default)
run: cargo test --verbose --no-fail-fast
- name: Build & Test (Default) - shadowsocks
run: cargo test --manifest-path ./crates/shadowsocks/Cargo.toml --verbose --no-fail-fast
- name: Build & Test (--no-default-features)
run: cargo test --verbose --no-default-features --no-fail-fast
- name: Build with All Features Enabled
run: cargo build --verbose --features "local-redir local-dns dns-over-tls dns-over-https stream-cipher"
- name: Build & Test (--no-default-features) - shadowsocks
run: cargo test --manifest-path ./crates/shadowsocks/Cargo.toml --verbose --no-default-features --no-fail-fast
- name: Build with All Features Enabled (Unix)
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
run: cargo build --verbose --features "local-http-rustls local-redir local-dns local-tun dns-over-tls dns-over-https stream-cipher aead-cipher-2022"
- name: Build with All Features Enabled (Windows)
if: ${{ runner.os == 'Windows' }}
run: cargo build --verbose --features "local-http-rustls local-dns dns-over-tls dns-over-https stream-cipher aead-cipher-2022"
- name: Build with All Features Enabled - shadowsocks
run: cargo build --manifest-path ./crates/shadowsocks/Cargo.toml --verbose --features "stream-cipher aead-cipher-2022"
36 changes: 36 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Docker Images
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
bin:
- ssserver
- sslocal
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/${{ matrix.bin }}-rust
- name: Build and release Docker images
uses: docker/build-push-action@v3
with:
platforms: linux/386,linux/amd64,linux/arm64/v8
target: ${{ matrix.bin }}
tags: ${{ steps.metadata.outputs.tags }}
push: true
125 changes: 125 additions & 0 deletions .github/workflows/build-nightly-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Build Nightly Releases
on:
push:
branches: [master]

env:
CARGO_TERM_COLOR: always

jobs:
build-cross:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
target:
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl

steps:
- uses: actions/checkout@v3

- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
rustup target add --toolchain stable ${{ matrix.target }}

- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2

- name: Install cargo-zigbuild
run: cargo install cargo-zigbuild

- name: Build ${{ matrix.target }}
timeout-minutes: 120
run: |
compile_target=${{ matrix.target }}

if [[ "$compile_target" == *"-linux-"* || "$compile_target" == *"-apple-"* ]]; then
compile_features="-f local-redir -f local-tun"
fi

if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
sudo apt-get update -y && sudo apt-get install -y upx;
if [[ "$?" == "0" ]]; then
compile_compress="-u"
fi
fi

cd build
./build-release-zigbuild -t ${{ matrix.target }} $compile_features $compile_compress

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}
path: build/release/*

build-unix:
runs-on: ${{ matrix.os }}
env:
BUILD_EXTRA_FEATURES: "local-redir local-tun"
RUST_BACKTRACE: full
strategy:
matrix:
os: [macos-latest]
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- uses: actions/checkout@v3

- name: Install GNU tar
if: runner.os == 'macOS'
run: |
brew install gnu-tar
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH

- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
rustup target add --toolchain stable ${{ matrix.target }}

- name: Build release
shell: bash
run: |
./build/build-host-release -t ${{ matrix.target }}

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}
path: build/release/*

build-windows:
runs-on: windows-latest
env:
RUSTFLAGS: "-C target-feature=+crt-static"
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v3

- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable

- name: Build release
run: |
pwsh ./build/build-host-release.ps1

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: windows-native
path: build/release/*
Loading