diff --git a/index.ts b/index.ts index 71750b70edb43eb2e05a99cae083635d4b1b1b84..b37775ae4251f1f93626babab8dcc3436d077303 100644 --- a/index.ts +++ b/index.ts @@ -69,7 +69,13 @@ Duniter.run([{ ':gva:' + conf.pair.pub.substr(0, 6)) return { startService: async () => { - if (!conf.gva || conf.gva.upnp) { + if (conf.gva) { + // Static usage of port + host, no UPnP + app = gvaHttpListen(server, + conf.gva.port || DEFAULT_GVA_PORT, + conf.gva.host || 'localhost') + } + else if (!conf.gva || conf.gva.upnp) { // Using UPnP const { available, host, port } = await api.startRegular() if (available) {