Skip to content

Commit

Permalink
feat(ssurl): remark support percent encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jun 16, 2024
1 parent 765c9e5 commit cd25d25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/shadowsocks/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,10 @@ impl ServerConfig {
}

if let Some(frag) = parsed.fragment() {
svrconfig.set_remarks(frag);
match percent_encoding::percent_decode_str(frag).decode_utf8() {
Ok(m) => svrconfig.set_remarks(m),
Err(..) => svrconfig.set_remarks(frag),
}
}

Ok(svrconfig)
Expand Down

0 comments on commit cd25d25

Please sign in to comment.