setSocks5Proxy static method
设置 SDK sock5 代理配置
@param host sock5 代理服务器的地址 @param port sock5 代理服务器的端口 @param username sock5 代理服务器的验证的用户名 @param password sock5 代理服务器的验证的密码
Implementation
static Future<V2TXLiveCode> setSocks5Proxy(
String host, int port, String username, String password) async {
var code = await V2TXLivePremier()._channel.invokeMethod("setSocks5Proxy", {
"host": host,
"port": port,
"username": username,
"password": password
});
if (code is V2TXLiveCode) {
return code;
} else {
return V2TXLIVE_ERROR_FAILED;
}
}