Skip to content

Commit

Permalink
Fix DNS change notification (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
pappz authored May 21, 2024
1 parent db2d5b8 commit 6957850
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private synchronized void onNewDNSList(LinkProperties linkProperties) {
if(newDNSList.size() != dnsServers.size()) {
DNSList dnsList = toDnsList(newDNSList);
try {
notifyDnsWatcher(dnsServers);
notifyDnsWatcher(dnsList);
dnsServers = dnsList;
} catch (Exception e) {
Log.e(LOGTAG, "failed to update dns servers", e);
Expand All @@ -101,7 +101,7 @@ private synchronized void onNewDNSList(LinkProperties linkProperties) {
try {
if (!newDNSList.get(i).getHostAddress().equals(dnsServers.get(i))) {
DNSList dnsList = toDnsList(newDNSList);
notifyDnsWatcher(dnsServers);
notifyDnsWatcher(dnsList);
dnsServers = dnsList;
return;
}
Expand Down

0 comments on commit 6957850

Please sign in to comment.