We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baa91ad commit ef22599Copy full SHA for ef22599
1 file changed
app/src/main/java/hev/sockstun/TProxyService.java
@@ -148,12 +148,14 @@ public void startService() {
148
tproxy_conf += " password: '" + prefs.getSocksPassword() + "'\n";
149
}
150
151
- tproxy_conf += "mapdns:\n" +
152
- " address: " + prefs.getMappedDns() + "\n" +
153
- " port: 53\n" +
154
- " network: 240.0.0.0\n" +
155
- " netmask: 240.0.0.0\n" +
156
- " cache-size: 10000\n";
+ if (prefs.getRemoteDns()) {
+ tproxy_conf += "mapdns:\n" +
+ " address: " + prefs.getMappedDns() + "\n" +
+ " port: 53\n" +
+ " network: 240.0.0.0\n" +
+ " netmask: 240.0.0.0\n" +
157
+ " cache-size: 10000\n";
158
+ }
159
160
fos.write(tproxy_conf.getBytes());
161
fos.close();
0 commit comments