summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection/ethernet.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index 61e5ca6..4be7a88 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -121,8 +121,11 @@ sub supplement_address_settings {
if ($self->{protocol} eq 'static' && network::network::is_ip($self->{address}{ip_address})) {
require network::network;
$self->{address}{netmask} ||= network::network::netmask($self->{address}{ip_address});
- $self->{address}{gateway} ||= network::network::gateway($self->{address}{ip_address});
- $self->{address}{dns1} ||= network::network::dns($self->{address}{ip_address});
+ # Bug #28033: don't guess default gateway and ns in static interfaces if
+ # user doesn't set one (otherwise we'll mess multi-interface systems)
+ #
+ #$self->{address}{gateway} ||= network::network::gateway($self->{address}{ip_address});
+ #$self->{address}{dns1} ||= network::network::dns($self->{address}{ip_address});
}
}