Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bases using a domain #101

Open
vartana opened this issue Oct 30, 2017 · 2 comments
Open

Bases using a domain #101

vartana opened this issue Oct 30, 2017 · 2 comments

Comments

@vartana
Copy link

vartana commented Oct 30, 2017

When our Base array contains a domain it fails to connect, it only works with IP.

WORKS:

function custom_bases (seneca, options, bases, next) {
     const dns = require('dns')

     dns.lookup('BaseSystem', function(err, result) {
         console.log(result)
         console.log(result + ':39999')
       next([result + ':39999'])
    })
}

Not Working:

function custom_bases (seneca, options, bases, next) {
     next(['BaseSystem:39999'])
}
@danielo515
Copy link

Really? I'm wich environments? That may be my actual problem!

@danielo515
Copy link

I can confirm that this is actually the problem. I also have to provide a custom_base lookup function to make this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants