Skip to content

(Mac OS X) circuit ls command not working with CIRCUIT_DISCOVER #15

Description

@traviskaufman

Here's what I've done:

  • Enabled Multicasting on the loopback if (lo0) and my standard en0 interface
  • In a terminal window:
circuit start -if lo0 -discover 228.1.1.2:7711
  • In a separate terminal window
CIRCUIT_DISCOVER=228.1.1.2:7711 circuit ls /...

In this case, circuit ls simply hangs.

However if I do this:

228.1.1.2:7711 circuit ls -discover '228.1.1.2:7711' /...

it works as expected.

Interestingly, it also works if I do this:

CIRCUIT_DISCOVER=228.1.1.2:7711 circuit ls -discover '' /...

I noticed in util.go dial() func that there's a switch statement that checks for a discover flag before looking at CIRCUIT_DISCOVER. Could it be that a default argument is being supplied to -discover that is being looked at instead of the env variable?

Environment:

screen shot 2014-10-26 at 4 14 05 pm

Let me know if you need any more info from me. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions