mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-23 16:38:34 +08:00
Vless (#67)
* init vless * change to cdn for uuid * add TODO * add support for ipv4 and 6 * add support for ipv4 and 6 * add error handle * add error handle * add error handle * add debug log * add debug log * add udp log * add udp log * update vless-js * add doc * add doc * add doc * remove log * remove log * remove log * remove log
This commit is contained in:
@@ -3,7 +3,7 @@ import { buildRawHttp500, isVaildateReq } from './helper.ts';
|
||||
const userID = Deno.env.get('UUID');
|
||||
|
||||
const handler = async (request: Request): Promise<Response> => {
|
||||
// console.log('--------start--------');
|
||||
console.log('--------start--------');
|
||||
try {
|
||||
const headers = request.headers;
|
||||
const serverAddress = headers.get('x-host') || '';
|
||||
@@ -80,4 +80,4 @@ ${userID ? 'has UUID env' : 'no UUID env'}
|
||||
}
|
||||
};
|
||||
|
||||
serve(handler, { port: 8080, hostname: '0.0.0.0' });
|
||||
serve(handler, { port: 8888, hostname: '[::]' });
|
||||
|
||||
Reference in New Issue
Block a user