mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Provide success return indication from console_configure_dhcpd
Recent commit 9ea554ee5c added testing of the return status of console_configure_dhcpd() - this let a user effectively abort from doing anything if they have answered "y" to prompt_for_enable_dhcp_server() and are being asked for the start and end of the range, and then decide they do not want to proceed.
However, even when they gave good answers, status 0 was being returned. This prevented changes ever being implemented.
Redmine: https://redmine.pfsense.org/issues/4080
The fix is to return 1 at the routine end, when all is good and the code should proceed.
This commit is contained in:
parent
cd4d0c2904
commit
14bd365aea
@ -401,6 +401,7 @@ function console_configure_dhcpd($version = 4) {
|
||||
$restart_dhcpd = true;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (console_configure_dhcpd(4) == 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user