Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -1,20 +1,8 @@
|
|
| 1 |
import express from "express";
|
| 2 |
-
import { existsSync, mkdirSync } from "fs";
|
| 3 |
-
import { dirname } from 'path';
|
| 4 |
-
import { fileURLToPath } from 'url';
|
| 5 |
-
|
| 6 |
-
const __filename = fileURLToPath(import.meta.url);
|
| 7 |
-
const __dirname = dirname(__filename);
|
| 8 |
|
| 9 |
const app = express();
|
| 10 |
const port = 7860;
|
| 11 |
|
| 12 |
-
(() => {
|
| 13 |
-
if (!existsSync(`${__dirname}/iiptest`)) {
|
| 14 |
-
mkdirSync(`${__dirname}/iiptest`);
|
| 15 |
-
}
|
| 16 |
-
})();
|
| 17 |
-
|
| 18 |
const isipok = async (ip) => {
|
| 19 |
const ret = await fetch("https://copilot.microsoft.com/", {
|
| 20 |
headers: {
|
|
|
|
| 1 |
import express from "express";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
const app = express();
|
| 4 |
const port = 7860;
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
const isipok = async (ip) => {
|
| 7 |
const ret = await fetch("https://copilot.microsoft.com/", {
|
| 8 |
headers: {
|