Initial Commit

Reverse Proxy Rewrite
This commit is contained in:
2025-10-24 12:41:22 -07:00
commit 8ce8c25442
6 changed files with 914 additions and 0 deletions

23
src/Program.js Normal file
View File

@@ -0,0 +1,23 @@
'use strict';
const ReverseProxy = require("./ReverseProxy");
/*/ Test GetPath
[
"https://localhost/health",
"http://12/health",
"localhost/health",
"ws://websocket/path?key=value",
"ssh://hello:22/"
].forEach(url => {
console.log(`'${url}' => '${ReverseProxy.GetPath(url)}'`)
})//*/
ReverseProxy.Start()
/*/ Test host resolution
.then(instance => {
["kavemans.dev", "localhost"].forEach(host => {
console.log(`'${host}' => '${instance.TryResolveInternalHost(host)}'`);
});
});//*/