Does not trim paddings for SIP002 URI.
https://shadowsocks.org/en/spec/SIP002-URI-Scheme.html
This commit is contained in:
@ -320,8 +320,6 @@ class ServerProfile: NSObject, NSCopying {
|
|||||||
guard let rawUserInfo = "\(method):\(password)".data(using: .utf8) else {
|
guard let rawUserInfo = "\(method):\(password)".data(using: .utf8) else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
let paddings = CharacterSet(charactersIn: "=")
|
|
||||||
let userInfo = rawUserInfo.base64EncodedString().trimmingCharacters(in: paddings)
|
|
||||||
|
|
||||||
var items = [URLQueryItem(name: "OTA", value: ota.description)]
|
var items = [URLQueryItem(name: "OTA", value: ota.description)]
|
||||||
if enabledKcptun {
|
if enabledKcptun {
|
||||||
|
Reference in New Issue
Block a user