Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12084

Docs for SERVER-36572: Command line --bind_ip should override bindIpAll in config file

    XMLWordPrintableJSON

Details

    Description

      Description

      Description:

      Documentation changes probably not ACTUALLY needed, but it's worth pointing out that as an implementation detail, setting `net.bindIp: *` will now result in the same behavior as `net.bindIpAll: true`. Additionally, the unexpected behavior resulting in this ticket will no longer occur. That is, CLI values for address binding will override YAML values, regardless of whether they are in the same setting or not.

      Engineering Ticket Description:

      I have a config file where I have set:

      net:
        bindIpAll: true

      But if I then run;

      /mongod --config /etc//mongod.conf --bind_ip 127.0.0.1

      And check it with netstat -alpn, I can see that mongod is still listening on all IPs.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 43 weeks, 1 day ago