mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-23 19:37:35 +08:00
Fix: Handle null content in PlanResource::formatContent method
- Fix deprecated warning when passing null to str_replace() function\n- Use null coalescing operator to provide empty string as default value\n- Comply with PHP 8.2+ type requirements
This commit is contained in:
@@ -27,6 +27,7 @@ class ClientController extends Controller
|
||||
'vmess' => '[vmess]',
|
||||
'trojan' => '[trojan]',
|
||||
'tuic' => '[tuic]',
|
||||
'socks' => '[socks]',
|
||||
];
|
||||
|
||||
// 支持hy2 的客户端版本列表
|
||||
|
||||
@@ -147,6 +147,9 @@ class UniProxyController extends Controller
|
||||
'zero_rtt_handshake' => false,
|
||||
'heartbeat' => "3s",
|
||||
],
|
||||
'socks' => [
|
||||
'server_port' => (int) $serverPort,
|
||||
],
|
||||
default => []
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user