This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const process = require('process'); | |
process.on('uncaughtException', console.error); | |
// used for the httpilltun itself. | |
const http = require('http'); | |
const websocket = require('./node_modules/websocket'); | |
const stream = require('stream'); | |
const fs = require('fs'); | |
const https = require('https'); | |
const url = require('url'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from time import time, sleep | |
try: | |
from time import time_ns | |
except ImportError: | |
def time_ns(): return int(str(time()).replace('.', '')) | |
from socket import socket, timeout, AF_INET, AF_INET6, SOCK_DGRAM, SOCK_STREAM | |
from threading import Thread |