V2rayU
V2rayU copied to clipboard
我为V2rayU添加了XHTTP协议的支持
@yanue 长时间不更新。我依靠我的业余技术和AI插件给V2rayU添加了XHTTP协议的支持。 https://github.com/Pickail/V2rayU/releases
麻烦创建一个pull request
@yanue 我之前提交的pull request的alpn格式有错。你更新的版本v4.2.6把这个错误也带上了。 V2rayU/ConfigWindow.swift文件里
if streamTlsAlpn.count != 0 {
- v2rayConfig.securityTls.alpn = [streamTlsAlpn]
+ v2rayConfig.securityTls.alpn = streamTlsAlpn.components(separatedBy: ",").map { $0.trimmingCharacters(in: CharacterSet(charactersIn: " \"")) }
} else {
- v2rayConfig.securityTls.alpn = []
+ v2rayConfig.securityTls.alpn = ["h2", "http/1.1"]
}
- self.streamTlsAlpn.stringValue = v2rayConfig.securityTls.alpn.count > 0 ? v2rayConfig.securityTls.alpn[0] : ""
+ self.streamTlsAlpn.stringValue = v2rayConfig.securityTls.alpn.map { "\"\($0)\"" }.joined(separator: ", ")
用了朋友添加了xhttp支持的4.2.6、4.2.7,发现xhttp的还是不能用啊
@yanue 我提交了一个新的pull request修复了alpn格式错误,别的什么都没有修改,望批准。