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

bind: add cfg options for listen-on and listen-on-v6. #26430

Merged
merged 2 commits into from
Jun 10, 2017

Conversation

dtulig
Copy link
Contributor

@dtulig dtulig commented Jun 6, 2017

This adds configuration options for the bind package so that the interfaces that bind listens on can be configured rather than just hardcoded as any. The default values preserve the old behavior to be backwards compatible.

Motivation for this change

The bind configuration is always listening on "any" interface. This change allows configuration of which interfaces to listen on. This is useful to listen on only certain networks.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

This adds configuration options for the bind package so that the
interfaces that bind listens on can be configured rather than just
hardcoded as any. The default values preserve the old behavior to be
backwards compatible.
@@ -96,6 +96,20 @@ in
";
};

listenOn = mkOption {
default = ["any"];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a type in here as well as below.

@dtulig
Copy link
Contributor Author

dtulig commented Jun 9, 2017

Added types for the new options in e13af4e.

@fpletz fpletz merged commit bb6cf34 into NixOS:master Jun 10, 2017
@fpletz
Copy link
Member

fpletz commented Jun 10, 2017

Thanks!

@dtulig dtulig deleted the bind-cfg-listen branch June 11, 2017 01:59
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

Successfully merging this pull request may close these issues.

None yet

3 participants