File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -502,11 +502,12 @@ export class ConfigurableProxy extends EventEmitter {
502502 options . target . searchParams . set ( "url" , req . url ) ;
503503 options . target . pathname = options . target . pathname + code . toString ( )
504504
505+ var url = "" ;
505506 if ( options . target . socketPath ) {
506507 options . target . hostname = 'localhost'
507- var url = options . target . toString ( ) . substring ( 5 ) // chop off unix+
508+ url = options . target . toString ( ) . substring ( 5 ) // chop off unix+
508509 } else {
509- var url = options . target . toString ( )
510+ url = options . target . toString ( )
510511 }
511512
512513 this . log . debug ( "Requesting custom error page: %s" , url ) ;
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import http from "node:http";
44import https from "node:https" ;
55import { WebSocketServer } from "ws" ;
66import { ConfigurableProxy } from "./configproxy.js" ;
7- import { defaultLogger } from "./log.js" ;
8- import { error } from "node:console" ;
97
108var servers = [ ] ;
119
You can’t perform that action at this time.
0 commit comments