chore(homebrew): v1.16.2 new release

This commit is contained in:
zonyitoo
2023-09-23 15:27:29 +08:00
parent 09c6b23f34
commit 1c0e2c7a72
4 changed files with 4 additions and 20 deletions

View File

@@ -597,8 +597,6 @@ Example configuration:
"remote_dns_address": "8.8.8.8",
// OPTIONAL. Remote DNS's port, 53 by default
"remote_dns_port": 53,
// OPTIONAL. DNS Client Cache (TCP & UDP sockets)
"client_cache_size": 5
},
{
// Tun local server (feature = "local-tun")

View File

@@ -66,14 +66,7 @@ use serde::{Deserialize, Serialize};
use shadowsocks::relay::socks5::Address;
use shadowsocks::{
config::{
ManagerAddr,
Mode,
ReplayAttackPolicy,
ServerAddr,
ServerConfig,
ServerUser,
ServerUserManager,
ServerWeight,
ManagerAddr, Mode, ReplayAttackPolicy, ServerAddr, ServerConfig, ServerUser, ServerUserManager, ServerWeight,
},
crypto::CipherKind,
plugin::PluginConfig,
@@ -1553,11 +1546,6 @@ impl Config {
});
}
#[cfg(feature = "local-dns")]
{
local_config.client_cache_size = local.client_cache_size;
}
#[cfg(feature = "local-tun")]
if let Some(tun_interface_address) = local.tun_interface_address {
match tun_interface_address.parse::<IpNet>() {
@@ -2469,8 +2457,6 @@ impl fmt::Display for Config {
Address::DomainNameAddress(.., port) => Some(*port),
},
},
#[cfg(feature = "local-dns")]
client_cache_size: local.client_cache_size.clone(),
#[cfg(feature = "local-tun")]
tun_interface_name: local.tun_interface_name.clone(),
#[cfg(feature = "local-tun")]

View File

@@ -353,7 +353,7 @@ impl Server {
let mut server_builder = {
let local_addr = local_config.local_dns_addr.expect("missing local_dns_addr");
let remote_addr = local_config.remote_dns_addr.expect("missing remote_dns_addr");
let client_cache_size = local_config.client_cache_size.unwrap_or_else(5);
let client_cache_size = local_config.client_cache_size.unwrap_or(5);
DnsBuilder::with_context(
context.clone(),

View File

@@ -1,8 +1,8 @@
class ShadowsocksRust < Formula
desc "Rust port of Shadowsocks"
homepage "https://github.com/shadowsocks/shadowsocks-rust"
url "https://github.com/shadowsocks/shadowsocks-rust/archive/v1.16.1.tar.gz"
sha256 "da4c6256247207b2579721046292bab1a2ac62301878c73ff778c168caa8a990"
url "https://github.com/shadowsocks/shadowsocks-rust/archive/v1.16.2.tar.gz"
sha256 "04fb797d8d04b8af9c4746ab9c1d659a3575a677892c2d5d9194a4b0e210e2ab"
license "MIT"
head "https://github.com/shadowsocks/shadowsocks-rust.git", branch: "master"