mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 06:10:01 -04:00
clean test code
This commit is contained in:
parent
f067d1e09c
commit
01bf3b3002
2 changed files with 1 additions and 32 deletions
|
@ -34,8 +34,7 @@ export const options: BareServerOptions = {
|
|||
// if the remote is an IP then it didn't go through the init.lookup hook
|
||||
// isValid determines if this is so
|
||||
if (isValid(url.hostname) && parse(url.hostname).range() !== "unicast")
|
||||
console.log("g");
|
||||
// throw new RangeError("Forbidden IP");
|
||||
throw new RangeError("Forbidden IP");
|
||||
},
|
||||
lookup: (hostname, options, callback) =>
|
||||
lookup(hostname, options, (err: any, address: any, family: any) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue