mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-26 21:52:44 +08:00
pppd: Import change from NetBSD
This avoids the use of gethostbyname() in case the "noipdefault" option is given. The gethostbyname() uses DNS by default.
This commit is contained in:
+1
-1
@@ -1294,7 +1294,7 @@ ip_check_options(void)
|
||||
* Default our local IP address based on our hostname.
|
||||
* If local IP address already given, don't bother.
|
||||
*/
|
||||
if (wo->ouraddr == 0) {
|
||||
if (wo->ouraddr == 0 && !disable_defaultip) {
|
||||
/*
|
||||
* Look up our hostname (possibly with domain name appended)
|
||||
* and take the first IP address as our local IP address.
|
||||
|
||||
Reference in New Issue
Block a user