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

non-alias host entry crashes #9

Closed
rogercollins opened this issue Oct 26, 2015 · 2 comments
Closed

non-alias host entry crashes #9

rogercollins opened this issue Oct 26, 2015 · 2 comments

Comments

@rogercollins
Copy link

I was getting a crash until I replaced this line in server.js:

if (opts.hosts[opts.hosts[h]] != 'undefined') {

with this line:

if (opts.hosts[opts.hosts[h]]) {
@ekristen
Copy link
Owner

Can I see the configuration you are using?

@rogercollins
Copy link
Author

Here you go below. Btw, thanks for the tool - it was nice setting my wifi router to use this proxy running on my dev laptop. Any clients on the LAN were redirected to the test server rather than the real server. That was the first time I ever ran a Node.js program - heads up there.

var opts  = require('rc')('dnsproxy', {
  port: 53,
  host: '0.0.0.0',
  logging: 'dnsproxy:debug',
  nameservers: [
    '8.8.8.8',
    '8.8.4.4'
  ],
  servers: {
  },
  domains: {
  },
  hosts: {
    'myflameboss.com': '192.168.2.4'
  },
  fallback_timeout: 350
});

ekristen added a commit that referenced this issue Apr 1, 2016
@ekristen ekristen closed this as completed Apr 1, 2016
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