mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 00:48:39 +08:00
11
ipv6-nodejs.js
Normal file
11
ipv6-nodejs.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const http = require('http');
|
||||
|
||||
const server = http.createServer((req, res) => {
|
||||
res.statusCode = 200;
|
||||
res.setHeader('Content-Type', 'text/plain');
|
||||
res.end('Hello, World!\n');
|
||||
});
|
||||
|
||||
server.listen(4000, '::', () => {
|
||||
console.log('Server running on http://[::]:3000/');
|
||||
});
|
||||
Reference in New Issue
Block a user