Skip to content

Commit

Permalink
Added Warp, Smart fragment, port modification.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Jun 23, 2024
1 parent eddec9f commit 4cd775a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,8 @@ const getFragmentConfigs = async (env, hostName, client) => {
}

const workerLessConfig = await buildWorkerLessConfig(env, client);



Configs.push(
{ address: 'Best-Ping', config: bestPing},
Expand Down Expand Up @@ -1997,7 +1999,7 @@ const renderHomePage = async (env, hostName, fragConfigs) => {
<td style="text-align: center; font-size: larger;"><b>TLS</b></td>
<td style="display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;">${(await buildPortsBlock()).httpsPortsBlock}</td>
</tr>
${!hostName.includes('pages.dev') && `<tr>
${hostName.includes('pages.dev') ? '' : `<tr>
<td style="text-align: center; font-size: larger;"><b>Non TLS</b></td>
<td style="display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;">${(await buildPortsBlock()).httpPortsBlock}</td>
</tr>`}
Expand Down Expand Up @@ -2643,10 +2645,6 @@ const renderErrorPage = (message, error, refer) => {
</html>`;
}

const isRunningAsWorker = () => {
return typeof process === 'undefined';
}

const xrayConfigTemp = {
remarks: "",
log: {
Expand Down

0 comments on commit 4cd775a

Please sign in to comment.