Commit Graph

32110 Commits

Author SHA1 Message Date
Chris Buechler
84a67bf406 Allow wildcard for hostname with Namecheap DDNS. Ticket #6260 2016-06-30 01:20:17 -05:00
Chris Buechler
0015e84cf4 Merge pull request #2729 from zevlag/BountyRequestTopic106193 2016-06-30 01:10:40 -05:00
Chris Buechler
d691888e59 Merge pull request #3031 from NOYB/GitSync_Diff_Only_Option 2016-06-30 01:05:15 -05:00
NOYB
d20f76bc7f GitSync Diff Only Option
Diff Option
--diff
SSD Friendlier
Same as default but only copies files that are different, instead of every thing even though identical.

Verbose Option
--verbose
Display constructed command.
In combination with the --diff option, display the array of different and missing files.

Dry Run Option
--dry-run
Run without syncing files.

Fixes

Files to copy variable state is used to determine whether or not to run the command.  Tar options being passed in the files to copy variable causes the command to always run.  Even if there are no files to be copied.  Separate out tar options from files to copy variable so command only runs if there are files to be copied.

Accommodate providing tar options such as '-C ./src' with the --minimal option.

Resolve function redefinition that prevents running gitsync again in same dev shell session (command recall) (function_exists).
2016-06-29 22:46:34 -07:00
Chris Buechler
792997227f Merge pull request #2994 from stilez/patch-31 2016-06-30 00:24:31 -05:00
Chris Buechler
50d369744e Merge pull request #3018 from phil-davis/usersettings 2016-06-30 00:20:40 -05:00
Chris Buechler
7685fd4ece Merge pull request #3029 from phil-davis/IPv6colons 2016-06-30 00:00:24 -05:00
Chris Buechler
bb5d3a43f9 Merge pull request #3030 from phil-davis/patch-1 2016-06-29 23:57:55 -05:00
Chris Buechler
f48034878d Merge pull request #3028 from PiBa-NL/2.3_dnsV6 2016-06-29 23:30:12 -05:00
Phil Davis
6bc8621f84 Rationalize System Update GUI messages
At present, when doing a System Update, there is a message box that says:
"Please wait while the installation of completes.
This may take several minutes."

Between "of" and "completes" is the package name, which is blank in the case of a System Update.

This should fix that issue by defining $pkg_wait_txt appropriately for the $firmwareupdate case.

Note: It was also easy to refactor out a couple of special "if firmwareupdate" tests, as the code "fell out" nicely by defining the other *_txt variables to suitable strings for the $firmwareupdate case.
2016-06-30 14:00:09 +09:30
Chris Buechler
9a8b5401c4 Add playback files for disabling and enabling CARP maintenance mode. Ticket #6560 2016-06-29 22:25:48 -05:00
Phil Davis
7e9349a59c Handle more invalid IPv6 formats 2016-06-30 12:50:34 +09:30
Chris Buechler
8d1a6065e1 Omit <secret> tags from L2TP in status.php config.xml dump. 2016-06-29 19:49:12 -05:00
Chris Buechler
eef555b96a Restore 2.2.x and prior means of obtaining pfsync nodes to avoid exhausting memory on systems with large state tables. Ticket #6364 2016-06-29 19:41:23 -05:00
PiBa-NL
ba40ee75f1 Diagnostics - DNS Lookup, also query for IPv6 addresses 2016-06-29 22:03:44 +02:00
Chris Buechler
4400ad904d Merge pull request #2934 from k-paulius/patch-14 2016-06-29 00:57:25 -05:00
Chris Buechler
31df78a89d Merge pull request #2944 from stilez/patch-23 2016-06-28 22:36:49 -05:00
Chris Buechler
1731599435 Merge pull request #3000 from stilez/patch-32 2016-06-28 22:32:44 -05:00
Chris Buechler
adcb1d0837 Merge pull request #3024 from phil-davis/include_once 2016-06-28 22:01:25 -05:00
Chris Buechler
5f93d5f172 Merge pull request #3027 from dhoffend/ticket-6505 2016-06-28 21:12:28 -05:00
Daniel Hoffend
40588fc44b Shorten gwifip if whole socket path exceeds 100 chars
dpinger stopps with an error when the socketname exceeds over
(around) 100 characters. The dpinger will not start and not deliver
monitoring results to the WebUI.

These long socket names can get created when using link-local addresses
and long gateway names / interface scopes.

See Ticket 6505
2016-06-29 01:21:39 +02:00
Daniel Hoffend
b225d003e9 Use a different delimiter for dpinger socket names
Currently underscores are used to seperate gwifip, monitorip, etc, but
underscors are also used in vlan subinterfaces like em0_vlan10 and
therefore can't be used because the interface scope is appended to IPv6
link-local addresses.
2016-06-29 00:46:10 +02:00
Chris Buechler
ef7c3a6373 Set pipe_slot_limit to the maximum configured qlimit value. Move the set_sysctl out if the block where it only gets run if dummynet isn't already loaded. Ticket #6553 2016-06-28 15:44:24 -05:00
Chris Buechler
cabb34e441 Clean up limiter text. Remove old commented out bit. 2016-06-28 15:04:54 -05:00
Stephen Beaver
a495f6b354 Merge pull request #3026 from phil-davis/patch-2 2016-06-28 08:51:24 -04:00
Stephen Beaver
d16eec1f2c Merge pull request #3025 from phil-davis/patch-1 2016-06-28 08:48:58 -04:00
Phil Davis
8a950b3c37 Fix matching of chars in IPv6 address segments
The existing regex here is wrong, it matches 0 or more of the hex digits but then there can be other rubbish in the string, in fact anything at all! It matches "az", "z", "qwerty" and so on. So the "return false" inside this "if" never happens.
In most cases the later code catches problems, because it converts the string from hex to decimal (and things like "z" end up as decimal 0), then it does some back-conversion of the answer to hex and realizes something is different and so does not count the entry as one of the needed 8 valid segments of the IPv6 address.
This goes wrong if the user supplies a string with 8 valid IPv6 hex pieces and 1 or more extra invalid ones anywhere in the list. In that case the code finds 8 good chunks and thinks that all is well.
Try using the pfSense is_ipaddrv6() with strings like:
$ipaddr = "1:2:3:4:5:6:7:z:a";
$ret = is_ipaddrv6($ipaddr);
var_dump($ret);

That returns true - which is not good!

You can put the invalid items anywhere you like, as long as you have 8 valid items, such as:
"1:2:3:xy:4:5:6:7:8"
"gh:1:2:3:xy:4:5:6:7:8"
"1:2:3:xy:4:5:6:7:8:qw"

This change makes this initial validity check on the characters actually work, so it avoids the later code having to deal with that at all.
2016-06-28 16:09:41 +09:30
Phil Davis
1f49dd8a3a Remove a-f from IPv4 address pattern
It seems to me that a through f should not be part of the pattern for the "V4" case.
2016-06-28 14:20:22 +09:30
Phil Davis
86573bb964 Update include() to include_once()
For safety, use include_once() when including various "side" files.
There are a couple of instances of include("guiconfig,inc") that I
changes to use require_once() to be consistent with everywhere else.
The remaining cases of include() are just (hundreds of) head.inc and
footer.inc - those are only at the start/end of the ordinary top-level
interactive PHP files. There is no nested interaction of those to think
about, so that should be fine.
2016-06-28 09:01:31 +09:30
Renato Botelho
f310decfbb Only build memstick images for now 2016-06-27 19:17:44 -03:00
Renato Botelho
8de27a69c4 Fix memstickserial and memstickadi images path 2016-06-27 18:59:55 -03:00
Renato Botelho
f51dbf53e9 Run make distribution on installer directory 2016-06-27 18:18:59 -03:00
Renato Botelho
6b5779e9da Enable bsdinstall for memstick serial and adi 2016-06-27 18:17:49 -03:00
Renato Botelho
7d46089736 Install kernel on installer image 2016-06-27 17:48:02 -03:00
Renato Botelho
33306accaf Goodbye bsdinstaller 2016-06-27 17:36:47 -03:00
Renato Botelho
729c0c7a0e Prepare memstick to use bsdinstall 2016-06-27 17:21:42 -03:00
Renato Botelho
fe5c5ee169 Do not write /etc/platform, base package will do it 2016-06-27 17:21:42 -03:00
Chris Buechler
687a187962 Merge pull request #3022 from phil-davis/require_once 2016-06-27 14:15:10 -05:00
Renato Botelho
a0b4972bed Disable athstats build 2016-06-27 15:46:35 -03:00
Renato Botelho
a81faa8570 Make sure filemon is loaded since we are going to use meta_mode 2016-06-27 15:04:15 -03:00
Renato Botelho
8e9167a574 Remove WITHOUT_TOOLCHAIN=1, it's already in src.conf 2016-06-27 13:08:51 -03:00
Renato Botelho
ab7ead1514 Move message to proper place 2016-06-27 13:08:37 -03:00
Renato Botelho
5c66c8c51a Simplify adding all targets at the same call 2016-06-27 13:04:18 -03:00
Renato Botelho
edfe9e761b Stop adding TARGET and TARGET_ARCH to all make calls, they are exported 2016-06-27 13:02:24 -03:00
Renato Botelho
3c794eb6df Export LOCAL_ITOOLS, same variable used by FreeBSD build tools 2016-06-27 12:58:54 -03:00
Renato Botelho
e0b07f6fa7 Use a single parameter to define -j parameter for build 2016-06-27 12:55:49 -03:00
Renato Botelho
41b0ac1b93 Remove NO_CLEAN and NO_KERNELCLEAN 2016-06-27 12:53:07 -03:00
Renato Botelho
8093ae170b Export SRCCONF, variable name used by FreeBSD and stop adding it to build commands 2016-06-27 12:50:15 -03:00
Renato Botelho
697cd601aa Export __MAKE_CONF, variable name used by FreeBSD and stop adding it to build commands 2016-06-27 12:50:08 -03:00
Renato Botelho
b906e9c27b Add src-env.conf to environment 2016-06-27 12:46:21 -03:00