mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-05 18:44:06 +08:00
update 2026-05-19 05:06:35
This commit is contained in:
1 parent
0739c277d4
commit
63075a3304
17 files changed
+56
-37
No files matched your search
@@ -875,6 +875,8 @@ table td, .table .td {
|
||||
p = "URLTest";
|
||||
} else if (protocol == "_shunt") {
|
||||
p = "<%:Shunt%>";
|
||||
} else if (protocol == "_iface") {
|
||||
p = "<%:Interface%>";
|
||||
} else if (protocol == "vmess") {
|
||||
p = "VMess";
|
||||
} else if (protocol == "vless") {
|
||||
@@ -957,7 +959,7 @@ table td, .table .td {
|
||||
var newDom = node_template.cloneNode(true);
|
||||
newDom.classList.add("cbi-rowstyle-" + (i % 2 + 1));
|
||||
var innerHTML = newDom.innerHTML;
|
||||
if (auto_detection_time != "icmp" && o["address"] && o["port"]) {
|
||||
if (auto_detection_time != "icmp" && o["address"]) {
|
||||
innerHTML = innerHTML.split("{{ping}}").join('<span class="ping"><a href="javascript:void(0)" onclick="javascript:ping_node(\'{{id}}\', this, \'icmp\')"><%:Test%></a></span>');
|
||||
} else {
|
||||
innerHTML = innerHTML.split("{{ping}}").join('<span class="ping_value" cbiid="{{id}}"><a href="javascript:void(0)" style="color:inherit">---</a></span>');
|
||||
@@ -976,11 +978,13 @@ table td, .table .td {
|
||||
innerHTML = innerHTML.split("{{group}}").join(o["group"] || "");
|
||||
let node_remarks = get_remarks_name(o);
|
||||
if (show_node_info == "1") {
|
||||
if (o["address"] && o["port"]) {
|
||||
let _port = o["port"] || o["hysteria_hop"] || o["hysteria2_hop"];
|
||||
if (_port) _port = _port.replace(/:/g, '-');
|
||||
if (o["address"] && _port) {
|
||||
let _address = o["address"]
|
||||
if (o["full_address"])
|
||||
_address = o["full_address"]
|
||||
node_remarks += "<br>" + _address + ":" + o["port"]
|
||||
node_remarks += "<br>" + _address + ":" + _port
|
||||
}
|
||||
}
|
||||
innerHTML = innerHTML.split("{{remarks}}").join(node_remarks);
|
||||
|
||||
Reference in new issue
Block a user