mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
macos afsdb reinit resolver on address change
assume a new address means we probably have new resolver info; reinit when we get the callback. FIXES 126440 Change-Id: I0d5ac0576f2b2e90093b93974b0354cac35d84a3 Reviewed-on: http://gerrit.openafs.org/2622 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
aaf9b4ddd5
commit
5aa8c5d979
@ -406,6 +406,10 @@ afsd_update_addresses(CFRunLoopTimerRef timer, void *info)
|
|||||||
} else
|
} else
|
||||||
printf("ADVISEADDR: Error in specifying interface addresses:%s\n",
|
printf("ADVISEADDR: Error in specifying interface addresses:%s\n",
|
||||||
reason);
|
reason);
|
||||||
|
|
||||||
|
/* Since it's likely this means our DNS server changed, reinit now */
|
||||||
|
if (enable_afsdb)
|
||||||
|
res_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function is called when the system's ip addresses may have changed. */
|
/* This function is called when the system's ip addresses may have changed. */
|
||||||
|
Loading…
Reference in New Issue
Block a user