Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit 9b7d6c7

Browse files
committed
🏷️ v1.11.2
1 parent 9ae23d8 commit 9b7d6c7

File tree

5 files changed

+81
-42
lines changed

5 files changed

+81
-42
lines changed

Cargo.lock

Lines changed: 58 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,3 @@ byteorder = "1.3"
141141
env_logger = "0.9"
142142
byte_string = "1.0"
143143
tokio = { version = "1", features = ["net", "time", "macros", "io-util"]}
144-
145-
[patch.crates-io]
146-
tokio = { git = "https://github.com/tokio-rs/tokio.git" }

crates/shadowsocks/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ async-trait = "0.1"
5555

5656
mio = "0.7"
5757
socket2 = { version = "0.4", features = ["all"] }
58-
tokio = { version = "1.5", features = ["io-util", "macros", "net", "parking_lot", "process", "rt", "sync", "time"] }
58+
tokio = { version = "1.9.0", features = ["io-util", "macros", "net", "parking_lot", "process", "rt", "sync", "time"] }
5959
tokio-io-timeout = "1.1"
6060

6161
trust-dns-resolver = { version = "0.20", optional = true }
6262
arc-swap = { version = "1.3", optional = true }
63-
notify = { version = "5.0.0-pre.5", optional = true }
63+
notify = { version = "5.0.0-pre.11", optional = true }
6464

6565
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
6666
shadowsocks-crypto = { version = "0.2", features = ["ring"] }

crates/shadowsocks/src/dns_resolver/resolver.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ cfg_if! {
135135

136136
#[cfg(all(feature = "trust-dns", unix, not(target_os = "android")))]
137137
async fn trust_dns_notify_update_dns(resolver: Arc<TrustDnsSystemResolver>) -> notify::Result<()> {
138+
use std::path::Path;
139+
138140
use log::debug;
139141
use notify::{Event, EventKind, RecommendedWatcher, RecursiveMode, Result as NotifyResult, Watcher};
140142
use tokio::sync::watch;
@@ -144,7 +146,7 @@ async fn trust_dns_notify_update_dns(resolver: Arc<TrustDnsSystemResolver>) -> n
144146
let (tx, mut rx) = watch::channel::<Event>(Event::default());
145147

146148
let mut watcher: RecommendedWatcher =
147-
Watcher::new_immediate(move |ev_result: NotifyResult<Event>| match ev_result {
149+
notify::recommended_watcher(move |ev_result: NotifyResult<Event>| match ev_result {
148150
Ok(ev) => {
149151
trace!("received event {:?}", ev);
150152

@@ -158,7 +160,7 @@ async fn trust_dns_notify_update_dns(resolver: Arc<TrustDnsSystemResolver>) -> n
158160
})?;
159161

160162
// NOTE: It is an undefined behavior if this file get renamed or removed.
161-
watcher.watch("/etc/resolv.conf", RecursiveMode::NonRecursive)?;
163+
watcher.watch(Path::new("/etc/resolv.conf"), RecursiveMode::NonRecursive)?;
162164

163165
while rx.changed().await.is_ok() {
164166
trace!("received notify /etc/resolv.conf changed");

debian/changelog

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
shadowsocks-rust (1.11.2) unstable; urgency=medium
2+
3+
## Features
4+
5+
- Replaced `futures::future::abortable` with `tokio`'s builtin `tokio::task::JoinHandle::abort`
6+
- Define binaries' exit code with standard in `sysexits.h`
7+
- HTTP local listener supports `TCP_NODELAY`, `SO_KEEPALIVE` and dual-stack
8+
9+
## Bug Fixed
10+
11+
- #577 `ssmanager` and `ssserver` command line argument `-u` should overwrite `mode` to be `Mode::UdpOnly`
12+
- #566 Exit with error code instead of `panic!` when loading ACL fails
13+
- #555 Properly handling `EINPROGRESS` for TFO connect when falling backs
14+
- #557 Properly killing UDP associations, which may cause `Future` (memory) leaks
15+
16+
-- ty <zonyitoo@gmail.com> Sat, 24 July 2021 11:50:00 +0800
17+
118
shadowsocks-rust (1.11.1) unstable; urgency=medium
219

320
## Features

0 commit comments

Comments
 (0)