Refactor proxy type retrieval in Server and Proxy classes

This commit is contained in:
Andras Bacsai
2024-03-12 12:45:55 +01:00
parent 1835a91467
commit 4d181eef8e
4 changed files with 10 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ class Proxy extends Component
public function mount()
{
$this->selectedProxy = data_get($this->server, 'proxy.type');
$this->selectedProxy = $this->server->proxyType();
$this->redirect_url = data_get($this->server, 'proxy.redirect_url');
}

View File

@@ -400,7 +400,7 @@ $schema://$host {
// $this->proxy->status = ProxyStatus::EXITED->value;
// $this->save();
// }
return data_get($this->proxy, 'type.type');
return data_get($this->proxy, 'type');
}
public function scopeWithProxy(): Builder
{