mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 17:02:34 +00:00
refactoring
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user