Refactor proxy type retrieval in Server and Proxy classes
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user