update 2025-08-13 00:30:01

This commit is contained in:
kenzok8
2025-08-13 00:30:01 +08:00
parent 725f39eb17
commit f69d7a47d1
5 changed files with 22 additions and 27 deletions

View File

@@ -1144,7 +1144,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['selected_config'])) {
<span id="ramUsage" class="form-control text-start ps-3"></span>
</div>
</div>
<div class="mb-3 d-flex align-item-center">
<div class="mb-3 d-flex align-items-center">
<h6 class="mb-0" style="width: 320px;">
<i data-feather="zap" class="me-2"></i><span data-translate="avgLoad">Average Load</span>
</h6>

View File

@@ -679,7 +679,7 @@ $(document).ready(function() {
<?php endif; ?>
</div>
<div class="text-center mt-1 mb-1">
<div class="text-center mt-4 mb-1">
<form method="post">
<button type="button" class="btn btn-primary mx-1 mb-2" data-bs-toggle="modal" data-bs-target="#cronModal">
<i class="bi bi-clock"></i> <span data-translate="set_cron_job"></span>

View File

@@ -417,12 +417,12 @@ document.addEventListener('click', e => {
<table class="table table-light table-striped text-center align-middle w-100 mb-0 white-text-table">
<thead class="table-light">
<tr>
<th style="width: 20%;" data-translate="componentName">Component Name</th>
<th style="width: 20%;">socks-port</th>
<th style="width: 20%;">mixed-port</th>
<th style="width: 13%;">redir-port</th>
<th style="width: 13%;">port</th>
<th style="width: 14%;">tproxy-port</th>
<th style="width: 20%;" class="text-center" data-translate="componentName">Component Name</th>
<th style="width: 16%;" class="text-center">socks-port</th>
<th style="width: 16%;" class="text-center">mixed-port</th>
<th style="width: 16%;" class="text-center">redir-port</th>
<th style="width: 16%;" class="text-center">port</th>
<th style="width: 16%;" class="text-center">tproxy-port</th>
</tr>
</thead>
<tbody>
@@ -7072,16 +7072,7 @@ h1 {
font-weight: 900;
}
h3, h4 {
color: oklch(
calc(var(--l) - 10%)
calc(var(--c) * 0.7)
calc(var(--base-hue) + 60)
) !important;
}
h2 ,h5, h6 {
h2 ,h3, h4 ,h5, h6 {
color: var(--accent-color) !important;
font-weight: bold;
}

View File

@@ -206,7 +206,7 @@ EOL;
<div class="card">
<div class="card-body">
<h4 class="card-title" data-translate="helpInfoHeading">Help Information</h4>
<ul class="list-unstyled">
<ul class="list-unstyled ps-3">
<li data-translate="template1"><strong>Template 1</strong>: No Region, No Groups.</li>
<li data-translate="template2"><strong>Template 2</strong>: No Region, With Routing Rules.</li>
<li data-translate="template3"><strong>Template 3</strong>: Hong Kong, Taiwan, Singapore, Japan, USA, South Korea, With Routing Rules.</li>
@@ -325,13 +325,13 @@ function displayLogData($dataFilePath, $translations) {
<div class="container-sm py-2">
<div class="card">
<div class="card-body p-2">
<div class="d-flex justify-content-between align-items-center my-2">
<h5 class="card-title mb-0"><?= htmlspecialchars($translations['data_saved']) ?></h5>
<div class="d-flex justify-content-between align-items-center mb-2 mt-2">
<h4 class="py-2 ps-3"><?= htmlspecialchars($translations['data_saved']) ?></h4>
</div>
<div class="overflow-auto border rounded p-2" style="height: 300px;">
<pre class="p-1 m-0 ms-2"><?= htmlspecialchars($savedData) ?></pre>
<div class="overflow-auto mx-3 rounded-3 p-2 border" style="height: 300px;">
<pre class="p-1 m-0 ms-2 log-content-area"><?= htmlspecialchars($savedData) ?></pre>
</div>
<div class="text-center mt-2">
<div class="text-center mt-3">
<form method="post" action="">
<button class="btn btn-sm btn-danger" type="submit" name="clearData">
<i class="bi bi-trash"></i> <?= htmlspecialchars($translations['clear_data']) ?>

View File

@@ -17,6 +17,9 @@ local xray_fragment = ucursor:get_all("shadowsocksr", "@global_xray_fragment[0]"
local xray_noise = ucursor:get_all("shadowsocksr", "@xray_noise_packets[0]") or {}
local outbound_settings = nil
local node_id = server_section
local remarks = server.alias or ""
function vmess_vless()
outbound_settings = {
vnext = {
@@ -238,7 +241,7 @@ end
rawSettings = (server.transport == "raw" or server.transport == "tcp") and {
-- tcp
header = {
type = server.tcp_guise or "none",
type = server.tcp_guise,
request = (server.tcp_guise == "http") and {
-- request
path = {server.http_path} or {"/"},
@@ -317,7 +320,8 @@ end
tcpMptcp = (server.mptcp == "1") and true or nil, -- MPTCP
Penetrate = (server.mptcp == "1") and true or nil, -- Penetrate MPTCP
tcpcongestion = server.custom_tcpcongestion, -- 连接服务器节点的 TCP 拥塞控制算法
dialerProxy = (xray_fragment.fragment == "1" or xray_fragment.noise == "1") and "dialerproxy" or nil
dialerProxy = (xray_fragment.fragment == "1" or xray_fragment.noise == "1") and
((remarks ~= nil and remarks ~= "") and (node_id .. "." .. remarks) or node_id) or nil
}
} or nil,
mux = (server.v2ray_protocol ~= "wireguard") and {
@@ -334,7 +338,7 @@ end
if xray_fragment.fragment ~= "0" or (xray_fragment.noise ~= "0" and xray_noise.enabled ~= "0") then
table.insert(Xray.outbounds, {
protocol = "freedom",
tag = "dialerproxy",
tag = (remarks ~= nil and remarks ~= "") and (node_id .. "." .. remarks) or node_id,
settings = {
domainStrategy = (xray_fragment.noise == "1" and xray_noise.enabled == "1") and xray_noise.domainStrategy,
fragment = (xray_fragment.fragment == "1") and {