* 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:
zizifn
2022-12-11 22:56:56 +08:00
committed by GitHub
parent 3d4fbd40c9
commit ceefb92803
30 changed files with 573 additions and 79 deletions

View File

@@ -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: '[::]' });