mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
allow setting protocol levels
This commit is contained in:
parent
b69c20d21a
commit
61012e6196
9 changed files with 149 additions and 60 deletions
|
|
@ -25,11 +25,32 @@ class Options implements IOptions {
|
|||
/** @var int */
|
||||
private $timeout = 20;
|
||||
|
||||
public function getTimeout() {
|
||||
/** @var string|null */
|
||||
private $minProtocol;
|
||||
/** @var string|null */
|
||||
private $maxProtocol;
|
||||
|
||||
public function getTimeout(): int {
|
||||
return $this->timeout;
|
||||
}
|
||||
|
||||
public function setTimeout($timeout) {
|
||||
public function setTimeout(int $timeout) {
|
||||
$this->timeout = $timeout;
|
||||
}
|
||||
|
||||
public function getMinProtocol(): ?string {
|
||||
return $this->minProtocol;
|
||||
}
|
||||
|
||||
public function setMinProtocol(?string $minProtocol): void {
|
||||
$this->minProtocol = $minProtocol;
|
||||
}
|
||||
|
||||
public function getMaxProtocol(): ?string {
|
||||
return $this->maxProtocol;
|
||||
}
|
||||
|
||||
public function setMaxProtocol(?string $maxProtocol): void {
|
||||
$this->maxProtocol = $maxProtocol;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue