| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.
|
| |
|
| |
|
|
|
|
|
|
|
| |
At the moment the user can answer "yes" to most of the questions, but then later code only checks if the answer is "y". Thus you can type in "yes" in some places, have it accepted, but actually the negative action is taken. That is weird and will mess up people who try typing a whole string starting with "y".
With this change it makes the user type one of "y", "yes", "n", "no". When they type 1 of those, it is turned into either "y" or "n". Then the existing implementation logic all works as expected.
Hopefully this is the "final" version that fixes the behavior of the (y/n) questions.
I also included the bit at 296-297 which adds the CIDR bit-count range to the prompt, so the user can see exactly what input is valid/expected there.
Redmine issue #4100
|
|
|
|
| |
Currently this allows the user to input any number for the CIDR. I happened to try 44 for an IPv4 CIDR when playing.
This fixes that little bug - I think it is good to commit that first/separately so it can be identified apart from the other (y/n) checking/handling I am working on. Better to have separate commits for distinct bugs.
|
|
|
|
|
|
| |
Recent commit https://github.com/pfsense/pfsense/commit/9ea554ee5cb25ea3bf5bb6bf7997c6c7379ce349 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.
|
| |
|
| |
|
|
|
|
| |
at the console, fix that.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem as per forum https://forum.pfsense.org/index.php?topic=83651.0
The problem comes whenever services_dhcpd_configure is called - the global $config gets reset from the actual current config, and any pending changes in the current process are lost.
It was introduced by commit 86ce2df
in which services_dhcpdv4_configure() does:
require_once('pkg-utils.inc')
and pkg-utils.inc does various stuff like:
if(file_exists("/cf/conf/use_xmlreader"))
require_once("xmlreader.inc");
else
require_once("xmlparse.inc");
which seems to cause a reset of the $config variable, thus losing the pending changes the user has entered at the console.
The top-level code in rc.initial.setlanip really does not need to (and should not) implement any changes along the way - it should collect all the answers from the user, then write_config and then make all the necessary calls to routines to implement the changes on the running system. This fixes it - defer any calls to services_dhcpd_configure() until after all questions are answered and write_config has happened.
|
|
|
|
|
|
|
|
|
| |
While trying to see why this is not working for me (forum https://forum.pfsense.org/index.php?topic=83651.0 ) I have fixed some little things:
1) Get the new-lines right so the output of the restarting looks neat
2) Fix a comparison that had just a single equal sign - it did not break anything real because the subsequent code was just text output to the console. Now that text output does take notice of the correctly-evaluated condition, and $interface is not overwritten.
The issue in the forum post, about the interface IP address config not actually changing, is still the case, at least for me.
IMO these little tidy ups might as well be committed. They make this code better!
|
| |
|
| |
|
| |
|
|
|
| |
Cut-paste bug
|
| |
|
|
|
|
| |
address. Issue #3196
|
|
|
|
| |
and wizard). It should fix #3196
|
| |
|
|
|
|
|
|
|
| |
- Avoid duplicate gateway entries
- Fix checking if a default gw already exists
- Set IPv6 to none when user choose it
- Set gateway on interface
|
|
|
|
| |
interfaces.php, the correct is dhcpdv6 instead of dhcpd6. Fixes #2827
|
|
|
|
|
|
|
|
| |
When WAN is set to PPPoE and user set other interfaces IP address using
console, it wrongly change the interface assignment to use the same
device of wan. It was caused by a hard coded "wan" on
console_get_interface_from_ppp() call, when it should use $interface
instead. It should fix #2074
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- add --dry-run mode
- prompts for gateway IP address as needed
does not yet do:
- add gateway to config
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
other type. This has been broken since new ppp code.
|
| |
|
|
|
|
| |
console menu
|
|
|
|
| |
HTTP_REFERER checks will not let you use the GUI.
|
| |
|
| |
|
| |
|
|
|
|
| |
functions most of the time. Include filter.inc where it is needed
|
| |
|
|
|
|
|
|
| |
and configure dhcpd if it's disabled by option #2 at the console.
Ticket #1867 (cvstrac)
|
|
|
|
| |
off easily.
|
| |
|
|
|
|
| |
for all assigned interface configuration.
|