Fix deprecations
This commit is contained in:
1 parent
0861b2db40
commit
595f0eddf1
6 files changed
+41
-48
No files matched your search
@@ -17,7 +17,6 @@
|
||||
* along with GenieACS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { parse } from "url";
|
||||
import * as db from "./db";
|
||||
import * as common from "./common";
|
||||
import * as cache from "./cache";
|
||||
@@ -80,7 +79,7 @@ export async function connectionRequest(
|
||||
).value || [""])[0];
|
||||
}
|
||||
|
||||
const remoteAddress = parse(connectionRequestUrl).host;
|
||||
const remoteAddress = new URL(connectionRequestUrl).hostname;
|
||||
|
||||
const evalCallback = (exp): Expression => {
|
||||
if (!Array.isArray(exp)) return exp;
|
||||
|
||||
Reference in new issue
Block a user