-
Notifications
You must be signed in to change notification settings - Fork 672
Add options to set ports on weaver command line #534
Conversation
Hmm... travis failed here, just like a build does locally, because
and of course a build will fail against the github version of Changing this to:
makes it work fine, but presumably you don't want to merge that. |
Hmm. Looks like something isn't quite right in our (relatively new) travis setup here. It appears to be pulling down dependencies from git when it should just use the repo it has already checked out. @tomwilkie any idea? |
It's because the name is different in the repo. Fix is in #528 |
I reckon we should move |
@@ -31,6 +31,7 @@ type Router struct { | |||
ConnLimit int | |||
BufSz int | |||
LogFrame func(string, []byte, *layers.Ethernet) | |||
ListenPort int |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
c6bd35f
to
b278a15
Compare
Rade: I fixed all your comments bar this one:
I didn't understand that one. This is in Travis appears to like the commit now. |
Ah sorry, github showed me a diff with a function boundary collapsed, and I didn't realise that. |
One more thing. The introduction of a dependency of |
b278a15
to
ff22013
Compare
I think I've done that, and it works here, but it's now failing the coverage test. I am afraid the reasons it's failing (but wasn't before) are a bit opaque to me. |
don't worry about the coverage "failure". |
@@ -14,12 +14,15 @@ const ( | |||
MaxInterval = 10 * time.Minute | |||
) | |||
|
|||
type PeerNormaliser func(string) string |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This commit adds two command line options, intended to allow multiple instances of weave to run without container separation between them. * -port=PORT makes weave bind to port PORT (an integer). Without the option, the default value (6783) is used. * -httpaddr=ADDRESS makes weave bind its control interface to a different address. For instance "127.0.0.1:6784" can be used to bind to localhost only. An absent address element makes it bind to all interfaces. ":6784" is the default. An empty string can be used to disable the control interface. Signed-off-by: Alex Bligh <alex@alex.org.uk>
ff22013
to
12d88ea
Compare
LGTM! |
Fixed |
Add options to set ports on weaver command line
This commit adds two command line options, intended to allow multiple
instances of weave to run without container separation between them.
option, the default value (6783) is used.
a different port. For instance "127.0.0.1:6784" can be used to
bind to localhost only. ":6784" is the default. An empty string
can be used to disable the control interface.
Signed-off-by: Alex Bligh alex@alex.org.uk