Corrected some typos (#6778)

This commit is contained in:
Alejandro Criado-Pérez 2023-09-20 13:44:39 +02:00 committed by GitHub
parent 2396e4b3ff
commit e25ef6774b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 16 additions and 16 deletions

View File

@ -212,7 +212,7 @@ function filter_configure_sync($verbose = false, $load_aliases = true)
empty($config['nat']['outbound']['mode']) ||
in_array($config['nat']['outbound']['mode'], array("automatic", "hybrid"))
) {
// generate standard outbound rules when mode is automatic ot hybrid
// generate standard outbound rules when mode is automatic or hybrid
$intfv4 = array();
foreach ($fw->getInterfaceMapping() as $intf => $intfcf) {
if (!empty($intfcf['ifconfig']['ipv4']) && empty($intfcf['gateway'])) {

View File

@ -37,7 +37,7 @@ class XMLRPCServer
/**
* load publishable function from inc/xmlrpc/*.inc
* every usable module should include a function to return its own registrable functions, using
* the following patten:
* the following pattern:
* xmlrpc_publishable_{filename without .inc}
*
* when functions wrap around a local variant with the same name, suffix with _xmlrpc (which will be stripped off)

View File

@ -116,7 +116,7 @@ function remove_nosync(&$cnf_structure)
/**
* find config section by reference (dot notation)
* for example system.user.0 points to the first enty in <system><user> xml config section
* for example system.user.0 points to the first entry in <system><user> xml config section
* @param array $cnf_structure_in pointer to config data
* @param array $cnf_structure_out pointer to config data
* @param string $reference reference pointer (system.user for example)

View File

@ -73,7 +73,7 @@ Note that
.Sq Fl d
will be executed first when given in the same command invoke.
.It Fl c
Clear all registed data of the selected device.
Clear all registered data of the selected device.
.It Fl d
Delete the specified data of the selected device.
.It Fl i Ar device

View File

@ -29,7 +29,7 @@
.Os
.Sh NAME
.Nm opnsense-crypt
.Nd OPNsense configurtion encryption utility
.Nd OPNsense configuration encryption utility
.Sh SYNOPSIS
.Nm
.Ar file
@ -41,13 +41,13 @@ utility will automatically encrypt or decrypt a given
file using the matching supplied
.Pa path/to/config.secret
file.
After succesfull execution the original contents of
After successful execution the original contents of
.Pa path/to/config.xml
will be replaced by the resulting contents of the respective operation.
.Pp
Please be aware that encrypting
.Pa /conf/config.xml
in a running system will invalidate and eventually reject this configuation.
in a running system will invalidate and eventually reject this configuration.
Use with care.
.Sh EXIT STATUS
.Ex -std

View File

@ -323,7 +323,7 @@ class ApiControllerBase extends ControllerRoot
*/
public function afterExecuteRoute($dispatcher)
{
// exit when reponse headers are already set
// exit when response headers are already set
if ($this->response->getHeaders()->get("Status") != null) {
return false;
} else {

View File

@ -146,7 +146,7 @@ class LeasesController extends ApiControllerBase
$done = false;
/* We infer the MAC from NDP data if available, otherwise we extract it out
* of the DUID. However, RFC8415 section 11 states that an attempt to parse
* a DUID to obtain a client's link-layer addresss is unreliable, as there is no
* a DUID to obtain a client's link-layer address is unreliable, as there is no
* guarantee that the client is still using the same link-layer address as when
* it generated its DUID. Therefore, if we can link it to a manufacturer, chances
* are fairly high that this is a valid MAC address, otherwise we omit the MAC

View File

@ -268,7 +268,7 @@ class AliasUtilController extends ApiControllerBase
* API handler to look up in which rules an IP is used (either explicitly or included in a range).
*
* @return array Array with indexes 'status' (whether the call succeeded) and 'matches' (which rules match this IP,
* only present if the call was succesful.)
* only present if the call was successful.)
* @throws \Exception
*/
public function findReferencesAction()

View File

@ -87,7 +87,7 @@
As an initiator, the first non-range/non-subnet is used to initiate the connection from.
As a responder the local destination address must match at least to one of the specified addresses, subnets or ranges.
If FQDNs are assigned, they are resolved every time a configuration lookup is done.
If DNS resolution times out, the lookup is delayed for that time. When left empty %any is choosen as default.
If DNS resolution times out, the lookup is delayed for that time. When left empty %any is chosen as default.
</help>
</field>
<field>

View File

@ -34,7 +34,7 @@
<id>spd.destination</id>
<label>Destination network</label>
<type>text</type>
<help>destination network, leave empty to use the networks propogated in the child sa</help>
<help>destination network, leave empty to use the networks propagated in the child sa</help>
</field>
<field>
<id>spd.description</id>

View File

@ -53,7 +53,7 @@
<id>destination.rfc5424</id>
<label>rfc5424</label>
<type>checkbox</type>
<help>Use rfc5424 formated messages for this destination.</help>
<help>Use rfc5424 formatted messages for this destination.</help>
</field>
<field>
<id>destination.description</id>

View File

@ -208,7 +208,7 @@ class AuthenticationFactory
return true;
} else {
// since checkConstraints() is defined on the service, who doesn't know about the
// authentication method. We can safely asume we cannot authenticate.
// authentication method. We can safely assume we cannot authenticate.
syslog(LOG_WARNING, sprintf(
"user %s could not authenticate for %s, failed constraints on %s authenticated via %s",
$username,

View File

@ -140,7 +140,7 @@ abstract class Base
/**
* update user group membership
* @param string $username username
* @param string $memberof list (\n seperated) of groups
* @param string $memberof list (\n separated) of groups
* @param array $scope list of groups that should be considered
* @param boolean $createuser create user when it does not exist
*/

View File

@ -82,7 +82,7 @@ trait TOTP
}
/**
* @param int $moment timestemp
* @param int $moment timestamp
* @param string $secret secret to use
* @return calculated token code
*/