I'm trying to log in to a server that I play on using my work machine, but it uses a proxy for company users. Is there any way to configure this proxy and its authentication in some part of the OTC code?
This is what I tried to do, the client opened correctly but I still get the ERROR 110 message.
(I don't have that much knowledge about Lua, but I tried)
this is the entergame.lua file:
This is what I tried to do, the client opened correctly but I still get the ERROR 110 message.
(I don't have that much knowledge about Lua, but I tried)
this is the entergame.lua file:
Lua:
local function onHTTPResult(data, err)
if err then
return EnterGame.onError(err)
end
-- company proxy data
local proxyHost = "host"
local proxyPort = 8080
local proxyUsername = "user"
local proxyPassword = "password"
g_network.setProxy(proxyHost, proxyPort, proxyUsername, proxyPassword)
end
function EnterGame.doLoginHttp()
-- rest of the login data
-- http request data
local data = {
type = "login",
account = G.account,
accountname = G.account,
email = G.account,
password = G.password,
accountpassword = G.password,
token = G.authenticatorToken,
version = APP_VERSION,
uid = G.UUID,
stayloggedin = true
}
-- making the request, passing the data and the callback function
HTTP.postJSON(G.host, data, onHTTPResult)
EnterGame.hide()
end