System Proxy Issue on Ubuntu 22.04
After webkit2gtk
Upgrade from 4.0 to 4.1
#1382
Labels
22.04
After webkit2gtk
Upgrade from 4.0 to 4.1
#1382
Describe the bug
I noticed that the
latest wry
already supports manually setting a proxy.This feature is not supported in
webkit2gtk4.0
but is available in4.1
.After testing, I confirmed that the manual proxy setting feature in
latest wry
works properly.However,
latest wry
can not automatically use the system proxy, it either requires users to manually specify the proxy or does not use any proxy at all.The software I am developing relies on this automatic proxy feature.
Steps To Reproduce
To reproduce this issue on Ubuntu 22.04, follow these steps:
Cargo.toml
:main.rs
:http://127.0.0.1:7890
).If you downgrade to
wry = "=0.24.11"
inCargo.toml
, the issue does not occur, and the proxy works as expected.This issue persists in the latest version (
wry 0.45.0
) as well.To reproduce this issue in the
latest wry
is basically the same as the steps above, except that the contents ofmain.rs
andCargo.toml
are different.Modify
Cargo.toml
:Modify
main.rs
:After running it you will see the same error as above in the webview.
And to resolve this in
latest wry
is very simple.Just set the proxy manually. Change the code in
main.rs
to the following:Expected behavior
I expect the
latest wry
can automatically use the system proxy when no manual proxy is configured, just as it did in versionv0.24.11
.But now
latest wry
either requires users to manually specify the proxy or does not use any proxy at all, lacking the option to automatically use the system proxy.Is the inability to automatically use the proxy a problem with
webkit2gtk4.1
itself? Canwry
automatically use the system proxy?Screenshots
Platform and Versions (please complete the following information):
✔ webkit2gtk-4.1: 2.44.2
✔ rsvg2: 2.52.5
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
Additional context
The text was updated successfully, but these errors were encountered: