Giter VIP home page Giter VIP logo

Comments (2)

mtlive avatar mtlive commented on May 20, 2024

Well I tried compiling UMR for Windows. Qt uses system proxy by default and it worked flawlessly on Windows.
UltimateMangaReader-win32.zip
UMR_windows

On Kobo I tried to set proxy by adding this line to launch script:
export http_proxy=socks5h://192.168.1.1:2020 but it either can't connect to Wi-Fi or hangs/doesn't load anything.
I also reviewed logs on proxy server (an openssh tunnel with -D switch) and there seems to be no connection from Kobo.

Could it be from the Qt library that you have provided with release (maybe a switch that you used for configuration)? I just used your release and didn't recompile anything for kobo.

from ultimatemangareader.

mtlive avatar mtlive commented on May 20, 2024

OK, after wasting some hours figuring out how to compile Qt for kobo and library stuffs,... I found out a weird behaviour from Qt on Kobo.
Even though Qt detects system proxy and by default is set to use it doesn't use it!
The output of:

QTextStream(stdout) << "***Proxy:" << QNetworkProxy::applicationProxy().hostName() << ":" << QNetworkProxy::applicationProxy().port() << " type:" << QNetworkProxy::applicationProxy().type()<< endl;
QTextStream(stdout) << "***Use system proxy:" << QNetworkProxyFactory::usesSystemConfiguration() << endl;
QNetworkProxyFactory::setUseSystemConfiguration(true);
QTextStream(stdout) << "***Proxy:" << QNetworkProxy::applicationProxy().hostName() << ":" << QNetworkProxy::applicationProxy().port() << " type:" << QNetworkProxy::applicationProxy().type()<< endl;

is

***Proxy:localhost:2020 type:1
***Use system proxy:1
***Proxy:localhost:2020 type:1

Even this one didn't work:
QNetworkProxy::setApplicationProxy( QNetworkProxy::applicationProxy());

Only this one makes it to use proxy:

QNetworkProxy proxy;
proxy.setType(QNetworkProxy::applicationProxy().type());
proxy.setHostName(QNetworkProxy::applicationProxy().hostName());
proxy.setPort(QNetworkProxy::applicationProxy().port());
QNetworkProxy::setApplicationProxy(proxy);
QTextStream(stdout) << "***Proxy:" << QNetworkProxy::applicationProxy().hostName() << ":" << QNetworkProxy::applicationProxy().port() << " type:" << QNetworkProxy::applicationProxy().type()<< endl;

Output:
***Proxy:localhost:2020 type:1

BTW I can now use proxy and access mangadex!

from ultimatemangareader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.