fix: update shadowsocks crate to 1.22.0 to avoid panic when parsing some QR codes

`aead-cipher` feature has become optional
and is disabled by default.
We enable it to avoid breaking compatibility.
This commit is contained in:
link2xt
2025-01-02 20:07:56 +00:00
committed by l
parent 62e22286bb
commit 8ec098210e
4 changed files with 101 additions and 43 deletions

View File

@@ -640,6 +640,9 @@ mod tests {
fn test_invalid_proxy_url() {
assert!(ProxyConfig::from_url("foobar://127.0.0.1:9050").is_err());
assert!(ProxyConfig::from_url("abc").is_err());
// This caused panic before shadowsocks 1.22.0.
assert!(ProxyConfig::from_url("ss://foo:bar@127.0.0.1:9999").is_err());
}
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]