Fix public API of LinkProperties.
bug:15142362 (cherry picked from commit 51d898fd0223a4b7c728980ab987dd985c02df5f) Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
This commit is contained in:
@@ -100,7 +100,7 @@ public class IpConfigStore {
|
|||||||
out.writeInt(0);
|
out.writeInt(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (InetAddress inetAddr : linkProperties.getDnses()) {
|
for (InetAddress inetAddr : linkProperties.getDnsServers()) {
|
||||||
out.writeUTF(DNS_KEY);
|
out.writeUTF(DNS_KEY);
|
||||||
out.writeUTF(inetAddr.getHostAddress());
|
out.writeUTF(inetAddr.getHostAddress());
|
||||||
}
|
}
|
||||||
@@ -232,7 +232,7 @@ public class IpConfigStore {
|
|||||||
}
|
}
|
||||||
linkProperties.addRoute(new RouteInfo(dest, gateway));
|
linkProperties.addRoute(new RouteInfo(dest, gateway));
|
||||||
} else if (key.equals(DNS_KEY)) {
|
} else if (key.equals(DNS_KEY)) {
|
||||||
linkProperties.addDns(
|
linkProperties.addDnsServer(
|
||||||
NetworkUtils.numericToInetAddress(in.readUTF()));
|
NetworkUtils.numericToInetAddress(in.readUTF()));
|
||||||
} else if (key.equals(PROXY_SETTINGS_KEY)) {
|
} else if (key.equals(PROXY_SETTINGS_KEY)) {
|
||||||
proxySettings = ProxySettings.valueOf(in.readUTF());
|
proxySettings = ProxySettings.valueOf(in.readUTF());
|
||||||
|
|||||||
Reference in New Issue
Block a user