-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set WebView proxy to 0.0.0.0 when possible #2539
Conversation
d7469fc
to
3d5848c
Compare
To test the changes in this pull request, install this apk: |
There is a good stackoverflow answer below the accepted one: https://stackoverflow.com/a/66099012/21313424 |
Converted to draft: this breaks loading remote images in HTML view. So we should restore the settings there. But first need to confirm that this proxy setting is useful for anything. |
3d5848c
to
f1315e3
Compare
To test the changes in this pull request, install this apk: |
this apk reliably works in my testing. |
f1315e3
to
6ce83d6
Compare
Release v1.112.8 of the core containing necessary API is ready. |
6f3f4a5
to
0f24c25
Compare
thanks! i pulled that on android-master and rebased this pr, so there should be a fresh app-preview.apk soon. |
To test the changes in this pull request, install this apk: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i also checked setProxyOverride() docs, this lgtm :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
res = new WebResourceResponse(mimeType, httpResponse.getEncoding(), new ByteArrayInputStream(httpResponse.getBlob())); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
res = new WebResourceResponse("text/plain", "UTF-8", new ByteArrayInputStream(("Error: " + e.getMessage()).getBytes())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is possible to return an actual error status code, but this is fine too.
requires deltachat/deltachat-core-rust#4339 to be checked out at jni/deltachat-core-rust