This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 674
Make proxy listen on unix:///var/run/weave.sock #1026
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -921,8 +921,8 @@ proxy_args() { | |||
} | |||
|
|||
proxy_addr() { | |||
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | head -n3 | grep -oE "proxy listening on .*"); then | |||
addr=${addr##* } | |||
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | grep -oE "proxy listening on .*" | head -n1); then |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Need to update the |
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | head -n3 | grep -oE "proxy listening on .*"); then | ||
addr=${addr##* } | ||
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | grep -oE "proxy listening on .*" | head -n1); then | ||
addr=${addr##* tcp://} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
tomwilkie
force-pushed
the
1003-proxy-unix-socket
branch
from
June 26, 2015 12:51
f132eac
to
10f5b76
Compare
errs := make(chan error) | ||
for _, addr := range proxy.ListenAddrs { | ||
Info.Println("proxy listening on", addr) | ||
} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Neither the docs nor the usage mention that multiple -H can be specified. |
tomwilkie
force-pushed
the
1003-proxy-unix-socket
branch
3 times, most recently
from
June 26, 2015 14:03
5e039b0
to
eeae40e
Compare
tomwilkie
force-pushed
the
1003-proxy-unix-socket
branch
from
June 26, 2015 14:43
eeae40e
to
f4db095
Compare
port=${addr#*:} | ||
echo "${1}tcp://${host:-$PROXY_HOST}:${port:-$PROXY_PORT}" | ||
addr=$(echo ${addr} | sed "s/0.0.0.0/$PROXY_HOST/g") | ||
echo "${1}${addr}" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
tomwilkie
force-pushed
the
1003-proxy-unix-socket
branch
from
June 26, 2015 15:08
f4db095
to
c4565f6
Compare
rade
added a commit
that referenced
this pull request
Jun 26, 2015
Make proxy listen on unix:///var/run/weave.sock Closes #1003
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1003