Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff646 authored Aug 17, 2024
1 parent 480f1b5 commit 9a34223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Hono } from 'hono';
const app = new Hono();

app.all('*', async (c) => {
const target = 'https://hono.5za.xyz'; // 你要代理的目标URL
const target = 'https://admin.5za.xyz'; // 你要代理的目标URL
const url = new URL(c.req.url);
url.hostname = new URL(target).hostname;

Expand Down

0 comments on commit 9a34223

Please sign in to comment.