Skip to content

Commit

Permalink
[MG] disable USE_DELEGATE_HOST_RESOLVE (#8)
Browse files Browse the repository at this point in the history
USE_DELEGATE_HOST_RESOLVE enables resolving proxy hosts by using Google
DNS (HTTPS) servers.

Since this leaks privacy and it's absolutely not needed (Android 9+
supports DNS-over-TLS that should be used instead), just disable it.
  • Loading branch information
Timothy Redaelli committed Jan 19, 2024
1 parent 53f6ac3 commit b095233
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -18,6 +18,7 @@ This includes the following additional features:
- Add toggle setting in Debug Menu to enable Message Details menu
- Add toggle setting in Debug Menu to disable Unified Push support
- Add toggle setting in Debug Menu to disable Secure Flags. This option must **only** be used for debugging.
- Disabled DOH resolving since this leaks your used proxy to Google and it's not needed since Android DNS over TLS should be used instead.
- Unlock premium app icons for anybody
- Large photos are sent (2560px instead of 1280px)
- Telegram application icons are replaced with [hermes wing (Created by Anthony Ledoux from Noun Project)](https://thenounproject.com/icon/hermes-wing-3559879/)
Expand Down
2 changes: 1 addition & 1 deletion TMessagesProj/jni/tgnet/Defines.h
Expand Up @@ -28,7 +28,7 @@
#define UPLOAD_CONNECTIONS_COUNT 4
#define CONNECTION_BACKGROUND_KEEP_TIME 10000
#define MAX_ACCOUNT_COUNT 5
#define USE_DELEGATE_HOST_RESOLVE
//#define USE_DELEGATE_HOST_RESOLVE

#define USE_IPV4_ONLY 0
#define USE_IPV6_ONLY 1
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Expand Up @@ -13,8 +13,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Sat Mar 12 05:53:50 MSK 2016
APP_VERSION_CODE=427500
APP_VERSION_NAME=10.6.1.0
APP_VERSION_CODE=427501
APP_VERSION_NAME=10.6.1.1
APP_PACKAGE=it.belloworld.mercurygram
org.gradle.jvmargs=-Xmx4096M -XX:MaxMetaspaceSize=4096m
org.gradle.daemon=true
Expand Down

0 comments on commit b095233

Please sign in to comment.