From 9fabf78619c384aeabc9f6ac941918531200fbb5 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 15 Oct 2006 12:34:58 +0000 Subject: fix initial IP not shown in network config --- lib/python/Components/Network.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 7513901f..0493f0fa 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -139,11 +139,9 @@ class Network: iNetwork = Network() def InitNetwork(): - ip = iNetwork.getCurrentIP() - config.network = ConfigSubsection() config.network.dhcp = NoSave(ConfigYesNo(default=True)) - config.network.ip = NoSave(ConfigIP(default=[0,0,0,0])) + config.network.ip = NoSave(ConfigIP(default=iNetwork.getCurrentIP())) config.network.netmask = NoSave(ConfigIP(default=[255,255,255,0])) config.network.gateway = NoSave(ConfigIP(default=[192,168,1,3])) config.network.dns = NoSave(ConfigIP(default=[192,168,1,3])) -- cgit v1.2.3