速狼加速器 v1.3.05版本的 MD5 值为:16b5e8af5c3774d85c1aa8bd4f624d0b
以下内容为反编译后的 HttpConnectConfig.java 源代码,内容仅作参考
package com.lzz.youtu.ss.tunnel.httpconnect;
import android.net.Uri;
import com.lzz.youtu.ss.tunnel.Config;
import java.net.InetSocketAddress;
public class HttpConnectConfig extends Config {
public String Password;
public String UserName;
public static HttpConnectConfig parse(String str) {
HttpConnectConfig httpConnectConfig = new HttpConnectConfig();
Uri parse = Uri.parse(str);
String userInfo = parse.getUserInfo();
if (userInfo != null) {
String[] split = userInfo.split(":");
httpConnectConfig.UserName = split[0];
if (split.length >= 2) {
httpConnectConfig.Password = split[1];
}
}
httpConnectConfig.ServerAddress = new InetSocketAddress(parse.getHost(), parse.getPort());
return httpConnectConfig;
}
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
return toString().equals(obj.toString());
}
public String toString() {
return String.format("http://%s:%s@%s", this.UserName, this.Password, this.ServerAddress);
}
}