summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/ipcp.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/pppd/ipcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/pppd/ipcp.c b/cpukit/pppd/ipcp.c
index ae8f15ba7c..fd23dddf9e 100644
--- a/cpukit/pppd/ipcp.c
+++ b/cpukit/pppd/ipcp.c
@@ -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.