X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FUIServerFactory.ts;h=2a125af07971fe9b724a06f45cf8c04b5e03c040;hb=4195af92661fd070e60b579f7b7308d93bf11e7a;hp=e7b341d1b0e62260b8156f239171da5d890b10b9;hpb=9c5d9fa4cd1904b5e2d4c4a8277bed25865b61b6;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/UIServerFactory.ts b/src/charging-station/ui-server/UIServerFactory.ts index e7b341d1..2a125af0 100644 --- a/src/charging-station/ui-server/UIServerFactory.ts +++ b/src/charging-station/ui-server/UIServerFactory.ts @@ -4,8 +4,8 @@ import type { UIServerConfiguration } from '../../types/ConfigurationData'; import { ApplicationProtocol } from '../../types/UIProtocol'; import Configuration from '../../utils/Configuration'; import type { AbstractUIServer } from './AbstractUIServer'; -import { UIServiceUtils } from './ui-services/UIServiceUtils'; import UIHttpServer from './UIHttpServer'; +import { UIServerUtils } from './UIServerUtils'; import UIWebSocketServer from './UIWebSocketServer'; export default class UIServerFactory { @@ -16,7 +16,7 @@ export default class UIServerFactory { public static getUIServerImplementation( uiServerConfiguration?: UIServerConfiguration ): AbstractUIServer | null { - if (UIServiceUtils.isLoopback(uiServerConfiguration.options?.host) === false) { + if (UIServerUtils.isLoopback(uiServerConfiguration.options?.host) === false) { console.warn( chalk.yellow( 'Loopback address not detected in UI server configuration. This is not recommended.'