|
@@ -49,7 +49,7 @@ class Server {
|
|
|
this.instance = express();
|
|
|
this.httpServer = http.createServer(this.instance);
|
|
|
this.port = properties.port;
|
|
|
- this.host = properties.host || 'http://localhost:3000';
|
|
|
+ this.host = properties.host || `http://localhost:${this.port}`;
|
|
|
this.i18n = i18nLoader.getInstance();
|
|
|
if(properties.locale)
|
|
|
this.i18n.setLocale(properties.locale);
|
|
@@ -287,6 +287,10 @@ class Server {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ public getHost(): string {
|
|
|
+ return this.host;
|
|
|
+ }
|
|
|
+
|
|
|
public getOption(key: string): any {
|
|
|
return this.options ? this.options[key] || null : null;
|
|
|
}
|