Skip to content
Snippets Groups Projects
Commit 4576cda7 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

HotFix: could not use just DNS for remote contact

parent c7b52954
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,6 @@ function Server (dbConf, overrideConf) {
that.conf = conf;
// Default values
var defaultValues = {
remoteipv4: that.conf.ipv4,
remoteipv6: that.conf.ipv6,
remoteport: that.conf.port,
cpu: 1,
......@@ -217,7 +216,7 @@ function Server (dbConf, overrideConf) {
if(!conf.ipv4 && !conf.ipv6){
throw new Error("No interface to listen to.");
}
if(!conf.remoteipv4 && !conf.remoteipv6){
if(!conf.remoteipv4 && !conf.remoteipv6 && !conf.remotehost){
throw new Error('No interface for remote contact.');
}
if (!conf.remoteport) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment