refactoring

This commit is contained in:
Saeed Vaziry
2023-08-04 18:28:04 +02:00
parent 8444323cf4
commit 643318fcfc
349 changed files with 3189 additions and 2729 deletions

View File

@ -11,7 +11,7 @@ class Ufw extends AbstractFirewall
/**
* @throws Throwable
*/
public function addRule(string $type, string $protocol, int $port, string $source, string $mask): void
public function addRule(string $type, string $protocol, int $port, string $source, ?string $mask): void
{
$this->service->server->ssh()->exec(
new AddRuleCommand('ufw', $type, $protocol, $port, $source, $mask),
@ -22,7 +22,7 @@ public function addRule(string $type, string $protocol, int $port, string $sourc
/**
* @throws Throwable
*/
public function removeRule(string $type, string $protocol, int $port, string $source, string $mask): void
public function removeRule(string $type, string $protocol, int $port, string $source, ?string $mask): void
{
$this->service->server->ssh()->exec(
new RemoveRuleCommand('ufw', $type, $protocol, $port, $source, $mask),