mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Do not add a loopback conf twice
This commit is contained in:
parent
dcf554a668
commit
d5602040d7
2 changed files with 1 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ function config.writeNetworkInterfaceConfig(f, iface, network_conf, dns_config,
|
|||
else
|
||||
f:write("iface " .. iface .. " inet " .. network_conf.mode .. "\n")
|
||||
|
||||
if network_conf.mode == "dhcp" then
|
||||
if ntop.isnEdge() and network_conf.mode == "dhcp" then
|
||||
f:write("\tpre-up /bin/rm -f /var/lib/dhcp/dhclient.".. iface ..".leases\n")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -93,9 +93,6 @@ function config.configureWiFiAccessPoint(nf, ssid, wpa_passphrase, network_conf)
|
|||
return false
|
||||
end
|
||||
|
||||
nf:write("auto lo\n")
|
||||
nf:write("iface lo inet loopback\n\n")
|
||||
|
||||
nf:write("auto eth0\n")
|
||||
nf:write("iface eth0 inet manual\n\n")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue