diff --git a/package-lock.json b/package-lock.json index 2db68ae..2a0e3e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16765,11 +16765,6 @@ "integrity": "sha512-oYBGY0GV1H1dX+ZdKnB6JVsYC1w/Xl20H111eb+WSS8nUYmlHgGb4y5buFSkzzceEeYYh5kMhXoAmoTpiQauiA==", "dev": true }, - "split-host": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/split-host/-/split-host-0.1.1.tgz", - "integrity": "sha512-nrlaPJMHkr3hKx7aCyr+S0OgUvAm/xKzWWMHej0IsMamWjRC52Fv+NGZwuqRE1lyu1iNWCmcrpZ1S1qvk+Uiwg==" - }, "split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", diff --git a/package.json b/package.json index b322f67..fcb6e14 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ "sequelize": "6.6.2", "sequelize-typescript": "^2.1.0", "sharp": "^0.28.3", - "split-host": "^0.1.1", "spotify-uri": "^2.2.0", "sqlite3": "^5.0.2", "telegraf": "^3.30.1", diff --git a/src/matrix/helpers.ts b/src/matrix/helpers.ts index 1aa58cd..707d4d5 100644 --- a/src/matrix/helpers.ts +++ b/src/matrix/helpers.ts @@ -3,7 +3,6 @@ import { LogService } from "matrix-js-snippets"; import { Cache, CACHE_FEDERATION } from "../MemoryCache"; import * as request from "request"; import config from "../config"; -import splitHost from 'split-host'; import * as requestPromise from "request-promise"; import { isIP } from "net"; @@ -37,12 +36,12 @@ export async function getFederationConnInfo(serverName: string): Promise