Skip to content

Commit 1c0e2c7

Browse files
committed
chore(homebrew): v1.16.2 new release
1 parent 09c6b23 commit 1c0e2c7

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,6 @@ Example configuration:
597597
"remote_dns_address": "8.8.8.8",
598598
// OPTIONAL. Remote DNS's port, 53 by default
599599
"remote_dns_port": 53,
600-
// OPTIONAL. DNS Client Cache (TCP & UDP sockets)
601-
"client_cache_size": 5
602600
},
603601
{
604602
// Tun local server (feature = "local-tun")

crates/shadowsocks-service/src/config.rs

+1-15
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,7 @@ use serde::{Deserialize, Serialize};
6666
use shadowsocks::relay::socks5::Address;
6767
use shadowsocks::{
6868
config::{
69-
ManagerAddr,
70-
Mode,
71-
ReplayAttackPolicy,
72-
ServerAddr,
73-
ServerConfig,
74-
ServerUser,
75-
ServerUserManager,
76-
ServerWeight,
69+
ManagerAddr, Mode, ReplayAttackPolicy, ServerAddr, ServerConfig, ServerUser, ServerUserManager, ServerWeight,
7770
},
7871
crypto::CipherKind,
7972
plugin::PluginConfig,
@@ -1553,11 +1546,6 @@ impl Config {
15531546
});
15541547
}
15551548

1556-
#[cfg(feature = "local-dns")]
1557-
{
1558-
local_config.client_cache_size = local.client_cache_size;
1559-
}
1560-
15611549
#[cfg(feature = "local-tun")]
15621550
if let Some(tun_interface_address) = local.tun_interface_address {
15631551
match tun_interface_address.parse::<IpNet>() {
@@ -2469,8 +2457,6 @@ impl fmt::Display for Config {
24692457
Address::DomainNameAddress(.., port) => Some(*port),
24702458
},
24712459
},
2472-
#[cfg(feature = "local-dns")]
2473-
client_cache_size: local.client_cache_size.clone(),
24742460
#[cfg(feature = "local-tun")]
24752461
tun_interface_name: local.tun_interface_name.clone(),
24762462
#[cfg(feature = "local-tun")]

crates/shadowsocks-service/src/local/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ impl Server {
353353
let mut server_builder = {
354354
let local_addr = local_config.local_dns_addr.expect("missing local_dns_addr");
355355
let remote_addr = local_config.remote_dns_addr.expect("missing remote_dns_addr");
356-
let client_cache_size = local_config.client_cache_size.unwrap_or_else(5);
356+
let client_cache_size = local_config.client_cache_size.unwrap_or(5);
357357

358358
DnsBuilder::with_context(
359359
context.clone(),

homebrew/shadowsocks-rust.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class ShadowsocksRust < Formula
22
desc "Rust port of Shadowsocks"
33
homepage "https://github.com/shadowsocks/shadowsocks-rust"
4-
url "https://github.com/shadowsocks/shadowsocks-rust/archive/v1.16.1.tar.gz"
5-
sha256 "da4c6256247207b2579721046292bab1a2ac62301878c73ff778c168caa8a990"
4+
url "https://github.com/shadowsocks/shadowsocks-rust/archive/v1.16.2.tar.gz"
5+
sha256 "04fb797d8d04b8af9c4746ab9c1d659a3575a677892c2d5d9194a4b0e210e2ab"
66
license "MIT"
77
head "https://github.com/shadowsocks/shadowsocks-rust.git", branch: "master"
88

0 commit comments

Comments
 (0)