feat: Add client.subscribe.servers hook for plugin-based server extension

- Add HookManager::filter('client.subscribe.servers') hook in ClientController::subscribe()
- Allow plugins to inject custom servers into subscription responses
- Update protocol classes to support extended server configurations
- Enable dynamic server list modification before protocol processing
This commit is contained in:
xboard
2025-07-11 21:19:23 +08:00
parent 1e59bc8ca1
commit 97788e3c8f
13 changed files with 48 additions and 47 deletions

View File

@@ -293,7 +293,7 @@ class Server extends Model
$this->attributes['protocol_settings'] = json_encode($castedSettings);
}
public function generateShadowsocksPassword(User $user): string
public function generateServerPassword(User $user): string
{
if ($this->type !== self::TYPE_SHADOWSOCKS) {
return $user->uuid;