refactor(proxy-status): refactored how the proxy status is handled on the UI and on the backend
feat(cloudflare): improved cloudflare tunnel automated installation
This commit is contained in:
@@ -69,6 +69,11 @@ class Server extends BaseModel
|
||||
}
|
||||
if ($server->ip) {
|
||||
$payload['ip'] = str($server->ip)->trim();
|
||||
|
||||
// Update ip_previous when ip is being changed
|
||||
if ($server->isDirty('ip') && $server->getOriginal('ip')) {
|
||||
$payload['ip_previous'] = $server->getOriginal('ip');
|
||||
}
|
||||
}
|
||||
$server->forceFill($payload);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user