Skip to content

Commit

Permalink
fix: make the code build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdibi committed Nov 23, 2023
1 parent 7d0e7d4 commit 73695ba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import org.eclipse.kura.crypto.CryptoService;
import org.eclipse.kura.executor.CommandExecutorService;
import org.eclipse.kura.internal.linux.net.dns.DnsServerService;
import org.eclipse.kura.linux.net.dhcp.DhcpServerTool;
import org.eclipse.kura.linux.net.util.LinuxNetworkUtil;
import org.eclipse.kura.net.NetInterfaceStatus;
import org.eclipse.kura.net.NetInterfaceType;
Expand Down Expand Up @@ -509,8 +508,9 @@ private void writeDhcpServerConfiguration(Set<String> interfaceNames) {
try {
dhcpServerConfigWriter.writeConfiguration();
this.dhcpServerMonitor.putDhcpServerInterfaceConfiguration(interfaceName, true);
this.dhcpServerMonitor.disable(); // Side effect: we rely on the monitor bringing the server back up
// so that the configuration can change take effect
this.dhcpServerMonitor.disable(interfaceName); // Side effect: we rely on the monitor bringing the
// server back up so that the configuration can
// change take effect

} catch (UnknownHostException | KuraException e) {
logger.error("Failed to write DHCP Server configuration", e);
Expand Down

0 comments on commit 73695ba

Please sign in to comment.