Merge change 22638 into eclair
* changes: Fix the removal of dns entries.
This commit is contained in:
@@ -1111,11 +1111,13 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
int j = 1;
|
int j = 1;
|
||||||
for (String dns : dnsList) {
|
for (String dns : dnsList) {
|
||||||
if (dns != null && !TextUtils.equals(dns, "0.0.0.0")) {
|
if (dns != null && !TextUtils.equals(dns, "0.0.0.0")) {
|
||||||
|
if (DBG) Log.d(TAG, " adding "+dns);
|
||||||
SystemProperties.set("net.dns" + j++, dns);
|
SystemProperties.set("net.dns" + j++, dns);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int k=j ; k<mNumDnsEntries; k++) {
|
for (int k=j ; k<mNumDnsEntries; k++) {
|
||||||
SystemProperties.set("net.dns" + j, "");
|
if (DBG) Log.d(TAG, "erasing net.dns" + k);
|
||||||
|
SystemProperties.set("net.dns" + k, "");
|
||||||
}
|
}
|
||||||
mNumDnsEntries = j;
|
mNumDnsEntries = j;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user