mirror of
https://github.com/v2board/v2board.git
synced 2025-01-27 00:19:10 +08:00
commit
d23daf4a68
@ -101,13 +101,20 @@ class ClientController extends Controller
|
|||||||
$proxyGroup = '';
|
$proxyGroup = '';
|
||||||
foreach ($server as $item) {
|
foreach ($server as $item) {
|
||||||
// [Proxy]
|
// [Proxy]
|
||||||
$proxies .= $item->name . ' = vmess, ' . $item->host . ', ' . $item->port . ', username=' . $user->v2ray_uuid . ', tls=' . ($item->tls ? "true" : "false");
|
$proxies .= $item->name . ' = vmess, ' . $item->host . ', ' . $item->port . ', username=' . $user->v2ray_uuid;
|
||||||
|
if ($item->tls) {
|
||||||
|
$tlsSettings = json_decode($item->tlsSettings);
|
||||||
|
$proxies .= ', tls=' . ($item->tls ? "true" : "false");
|
||||||
|
if (isset($tlsSettings->allowInsecure)) {
|
||||||
|
$proxies .= ', skip-cert-verify=true';
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($item->network == 'ws') {
|
if ($item->network == 'ws') {
|
||||||
$proxies .= ', ws=true';
|
$proxies .= ', ws=true';
|
||||||
if ($item->networkSettings) {
|
if ($item->networkSettings) {
|
||||||
$wsSettings = json_decode($item->networkSettings);
|
$wsSettings = json_decode($item->networkSettings);
|
||||||
if (isset($wsSettings->path)) $proxies .= ', ws-path=' . $wsSettings->path;
|
if (isset($wsSettings->path)) $proxies .= ', ws-path=' . $wsSettings->path;
|
||||||
if (isset($wsSettings->headers->Host)) $proxies .= ', ws-headers=' . $wsSettings->headers->Host;
|
if (isset($wsSettings->headers->Host)) $proxies .= ', ws-headers=host:' . $wsSettings->headers->Host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$proxies .= "\r\n";
|
$proxies .= "\r\n";
|
||||||
|
@ -51,6 +51,9 @@ class TicketController extends Controller
|
|||||||
public function save(TicketSave $request)
|
public function save(TicketSave $request)
|
||||||
{
|
{
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
if ((int)Ticket::where('status', 0)->count()) {
|
||||||
|
abort(500, '存在其他工单尚未处理');
|
||||||
|
}
|
||||||
$ticket = Ticket::create(array_merge($request->only([
|
$ticket = Ticket::create(array_merge($request->only([
|
||||||
'subject',
|
'subject',
|
||||||
'level'
|
'level'
|
||||||
|
@ -22,6 +22,7 @@ class SendEmailJob implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function __construct($params)
|
public function __construct($params)
|
||||||
{
|
{
|
||||||
|
$this->delay(now()->addSecond(2));
|
||||||
$this->onQueue('send_email');
|
$this->onQueue('send_email');
|
||||||
$this->params = $params;
|
$this->params = $params;
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ class ServerService
|
|||||||
if ($server->dnsSettings) {
|
if ($server->dnsSettings) {
|
||||||
$dns = json_decode($server->dnsSettings);
|
$dns = json_decode($server->dnsSettings);
|
||||||
$json->dns = $dns;
|
$json->dns = $dns;
|
||||||
|
$json->outbound->settings->domainStrategy = 'UseIP';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user