set base URL

This commit is contained in:
Matt Rothenberg
2022-12-02 14:17:17 +01:00
committed by GitHub
parent c49e9e8503
commit 7d674e7cdc

View File

@@ -1,7 +1,7 @@
import http from 'http';
const server = http.createServer(function(req, res) {
const target = new URL(req.url).searchParams.get("target");
const target = new URL(req.url, "http://example.com").searchParams.get("target");
let subdomain;
if (target === 'EU') {